diff --git a/.github/workflows/maven-verify.yaml b/.github/workflows/maven-verify.yaml
index 7f98bc1..6b4da93 100644
--- a/.github/workflows/maven-verify.yaml
+++ b/.github/workflows/maven-verify.yaml
@@ -1,9 +1,6 @@
name: Build
on:
- push:
- branches:
- - main
pull_request:
branches:
- main
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index bc39675..17203a3 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -168,16 +168,37 @@ jobs:
${{ runner.os }}-maven-
- name: Publish to Apache Maven Central
- run: mvn clean deploy -P release,attach-javadoc,attach-source
+ run: mvn clean deploy -P release,attach-javadoc,attach-source -DskipStagingRepositoryClose=true
env:
MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
- name: Publish to Apache Maven Central
- run: mvn clean deploy -P release,java8
+ run: mvn clean deploy -P release,java8 -DautoReleaseAfterClose=true
env:
MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
+ changelog:
+ runs-on: ubuntu-latest
+ if: github.ref == 'refs/heads/main'
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v2
+
+ - name: Generate Changelog
+ uses: heinrichreimer/github-changelog-generator-action@v2.2
+ with:
+ issues: false
+ token: ${{ secrets.GITHUB_TOKEN }}
+
+ - name: Commit Changelog
+ run: |
+ git config user.name "GitHub Actions"
+ git config user.email noreply@github.com
+ git add CHANGELOG.md
+ git commit -m 'Update Changelog.'
+ git push
diff --git a/.github/workflows/snapshot-deploy.yaml b/.github/workflows/snapshot-deploy.yaml
index 5e40665..dbbf33a 100644
--- a/.github/workflows/snapshot-deploy.yaml
+++ b/.github/workflows/snapshot-deploy.yaml
@@ -1,11 +1,14 @@
name: Deploy SNAPSHOT
-on: workflow_dispatch
+on:
+ push:
+ branches:
+ - main
jobs:
deploy-snapshot:
runs-on: ubuntu-latest
- if: github.ref == 'refs/heads/main'
+
steps:
- name: Checkout code
uses: actions/checkout@v2
diff --git a/.gitignore b/.gitignore
index 831cc86..0fa2716 100644
--- a/.gitignore
+++ b/.gitignore
@@ -46,6 +46,7 @@ tmp/
local.properties
.settings/
.loadpath
+.classpath
# Eclipse Core
.project
diff --git a/pom.xml b/pom.xml
index ca42668..10ba96d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -78,7 +78,8 @@
2.0.0
2.29.1
- 2.10.1
+ 2.10.5
+ 2.10.5.1
@@ -240,6 +241,16 @@
+
+ org.sonatype.plugins
+ nexus-staging-maven-plugin
+ true
+
+ ossrh
+ https://oss.sonatype.org/
+ io.adobe.cloudmanager
+
+
@@ -278,6 +289,11 @@
jacoco-maven-plugin
0.8.6
+
+ org.sonatype.plugins
+ nexus-staging-maven-plugin
+ 1.6.8
+
@@ -450,7 +466,7 @@
com.fasterxml.jackson.core
jackson-databind
- ${jackson-version}
+ ${jackson-databind-version}
com.fasterxml.jackson.datatype