-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into dependabot/maven/com.puppycrawl.tools-chec…
…kstyle-8.29
- Loading branch information
Showing
19 changed files
with
479 additions
and
566 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_style = space | ||
indent_size = 2 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto | ||
*.txt text | ||
*.sh text eol=lf | ||
*.html text eol=lf diff=html | ||
*.css text eol=lf | ||
*.js text eol=lf | ||
*.jpg -text | ||
*.pdf -text | ||
*.java text diff=java |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Branch CI | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- '.github/workflows/**' | ||
- '*.md' | ||
- '*.txt' | ||
branches-ignore: | ||
- 'release*' | ||
|
||
jobs: | ||
build: | ||
name: Branch CI | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
server-id: github | ||
server-username: GITHUB_ACTOR | ||
server-password: GITHUB_TOKEN | ||
- name: Maven Build | ||
run: mvn clean install -DskipTests=true -Dmaven.javadoc.skip=true -Ddockerfile.skip=true -B -V | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.ORGANIZATION_TOKEN }} | ||
- name: Maven Verify | ||
run: mvn verify -B |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Pre-release CI | ||
|
||
on: | ||
release: | ||
types: [prereleased] | ||
|
||
jobs: | ||
build: | ||
name: Pre-release CI | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Set up Java for publishing to GitHub Packages | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
server-id: github | ||
server-username: GITHUB_ACTOR | ||
server-password: GITHUB_TOKEN | ||
- name: Deploy pre-release version to GitHub Packages | ||
run: | | ||
pre_release_version=${{ github.event.release.tag_name }} | ||
echo Pre-release version $pre_release_version | ||
mvn versions:set -DnewVersion=$pre_release_version -DgenerateBackupPoms=false | ||
mvn versions:commit | ||
mvn clean deploy -Pdeploy2Github -B -V | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.ORGANIZATION_TOKEN }} | ||
- name: Set up Java for publishing to Maven Central Repository | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
server-id: ossrh | ||
server-username: MAVEN_USERNAME | ||
server-password: MAVEN_PASSWORD | ||
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} | ||
gpg-passphrase: MAVEN_GPG_PASSPHRASE | ||
- name: Deploy pre-release version to the Maven Central Repository | ||
run: | | ||
pre_release_version=${{ github.event.release.tag_name }} | ||
echo Pre-release version $pre_release_version | ||
mvn versions:set -DnewVersion=$pre_release_version -DgenerateBackupPoms=false | ||
mvn versions:commit | ||
mvn deploy -Pdeploy2Maven -DskipTests -B -V | ||
env: | ||
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} | ||
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} | ||
- name: Rollback pre-release (remove tag) | ||
if: failure() | ||
run: git push origin :refs/tags/${{ github.event.release.tag_name }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
name: Release CI | ||
|
||
on: | ||
release: | ||
types: [released] | ||
|
||
jobs: | ||
build: | ||
name: Release CI | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- run: git checkout ${{ github.event.release.target_commitish }} | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Set up Java for publishing to GitHub Packages | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
server-id: github | ||
server-username: GITHUB_ACTOR | ||
server-password: GITHUB_TOKEN | ||
- name: Maven Build | ||
run: mvn clean install -DskipTests=true -Ddockerfile.skip=true -B -V | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.ORGANIZATION_TOKEN }} | ||
- name: Maven Verify | ||
run: mvn verify -B | ||
- name: Configure git | ||
run: | | ||
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com" | ||
git config --global user.name "${GITHUB_ACTOR}" | ||
- name: Prepare release | ||
id: prepare_release | ||
run: | | ||
mvn -B build-helper:parse-version release:prepare \ | ||
-DreleaseVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.incrementalVersion} \ | ||
-Darguments="-DskipTests=true -Ddockerfile.skip=true" | ||
echo release_tag=$(git describe --tags --abbrev=0) >> $GITHUB_OUTPUT | ||
- name: Perform release | ||
run: mvn -B release:perform -Pdeploy2Github -Darguments="-DskipTests=true -Ddockerfile.skip=true -Pdeploy2Github" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }} | ||
- name: Set up Java for publishing to Maven Central Repository | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
server-id: ossrh | ||
server-username: MAVEN_USERNAME | ||
server-password: MAVEN_PASSWORD | ||
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} | ||
gpg-passphrase: MAVEN_GPG_PASSPHRASE | ||
- name: Deploy release version to the Maven Central Repository | ||
run: | | ||
release_version=$(echo ${{ steps.prepare_release.outputs.release_tag }} | sed "s/release-//") | ||
echo release version $release_version | ||
mvn versions:set -DnewVersion=$release_version -DgenerateBackupPoms=false | ||
mvn versions:commit | ||
mvn deploy -Pdeploy2Maven -DskipTests -B -V | ||
env: | ||
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} | ||
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} | ||
- name: Rollback release | ||
if: failure() | ||
run: | | ||
mvn release:rollback || echo "nothing to rollback" | ||
git push origin :refs/tags/${{ github.event.release.tag_name }} | ||
if [ ! -z "${{ steps.prepare_release.outputs.release_tag }}" ] | ||
then | ||
git tag -d ${{ steps.prepare_release.outputs.release_tag }} | ||
git push origin :refs/tags/${{ steps.prepare_release.outputs.release_tag }} | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,14 @@ | ||
# everything that starts with dot (hidden files) | ||
.* | ||
# except this file | ||
!.gitignore | ||
# except this file-extention | ||
!.gitattributes | ||
!.github | ||
!.editorconfig | ||
!.*.yml | ||
|
||
# Build targets | ||
!.env.example | ||
**/target/ | ||
|
||
# logs and reports | ||
*.iml | ||
**/logs/*.log | ||
**/logs/*.log.* | ||
*.db | ||
*.csv | ||
*.log | ||
*.zip | ||
|
||
# IntelliJ IDEA project files and directories | ||
*.iml | ||
|
||
**/pom.xml.releaseBackup | ||
/release.properties |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
extends: default | ||
rules: | ||
document-start: | ||
present: false | ||
truthy: disable | ||
comments: | ||
min-spaces-from-content: 1 | ||
line-length: | ||
max: 150 | ||
braces: | ||
min-spaces-inside: 0 | ||
max-spaces-inside: 0 | ||
brackets: | ||
min-spaces-inside: 0 | ||
max-spaces-inside: 0 | ||
indentation: | ||
indent-sequences: consistent |
Oops, something went wrong.