diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dcc361d..d9062d6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,10 +36,10 @@ jobs: distribution: temurin java-version: 17 cache: 'maven' - server-id: ossrh + server-id: oss-sonatype-staging server-username: OSS_SONATYPE_USERNAME server-password: OSS_SONATYPE_PASSWORD - gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} + gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} gpg-passphrase: MAVEN_GPG_PASSPHRASE - name: Configure Git author @@ -58,12 +58,12 @@ jobs: git commit -m "chore: set release version: ${{steps.metadata.outputs.current-version}} in samples and README.md" - name: Maven release ${{steps.metadata.outputs.current-version}} run: | - mvn -B release:prepare -Prelease -DreleaseVersion=${{steps.metadata.outputs.current-version}} -DdevelopmentVersion=${{steps.metadata.outputs.next-version}} - mvn -B release:perform -Darguments=-DperformRelease -DperformRelease -Prelease + mvn -B release:prepare -Prelease -Darguments="-DskipTests" -DreleaseVersion=${{steps.metadata.outputs.current-version}} -DdevelopmentVersion=${{steps.metadata.outputs.next-version}} + mvn -B release:perform -Darguments="-DperformRelease -DskipTests" -DperformRelease -Prelease env: OSS_SONATYPE_USERNAME: ${{ secrets.OSS_SONATYPE_USERNAME }} OSS_SONATYPE_PASSWORD: ${{ secrets.OSS_SONATYPE_PASSWORD }} - MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} - name: Set dev version in the samples and readme run: | find ./samples/ -iwholename "*/pack.java" | while read f; do diff --git a/pom.xml b/pom.xml index c30ae07..6c31553 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ Snowdrop :: Java Buildpack Client :: Project A Buildpack client implementation written in Java - https://snowdrop.dev + http://github.com/snowdrop/java-buildpack-client 2020 @@ -34,8 +34,8 @@ - scm:git:git@github.com:snowdrop/java-buildpack-client.git - scm:git:git@github.com:snowdrop/java-buildpack-client.git + scm:git:git://github.com/snowdrop/java-buildpack-client.git + scm:git:ssh://git@github.com:snowdrop/java-buildpack-client.git http://github.com/snowdrop/java-buildpack-client ${project.version} @@ -46,6 +46,10 @@ Sonatype Staging Repository https://oss.sonatype.org/service/local/staging/deploy/maven2 + + oss-sonatype-snapshots + https://oss.sonatype.org/content/repositories/snapshots + @@ -63,15 +67,17 @@ 3.12.4 - 3.8.1 - 2.22.0 - 2.22.0 + 3.13.0 + 3.3.0 + 3.3.0 - 1.6 + 3.1.0 + 3.2.4 1.3.1 - 2.10.3 - 2.4 + 3.7.0 + 3.3.1 + 1.6.13 @@ -212,6 +218,13 @@ sign + + + + --pinentry-mode + loopback + + @@ -272,6 +285,31 @@ + + org.apache.maven.plugins + maven-release-plugin + ${version.maven-release-plugin} + + true + @{project.version} + false + true + false + -DskipTests=true + + + + org.sonatype.plugins + nexus-staging-maven-plugin + ${version.nexus-staging-maven-plugin} + true + + oss-sonatype-staging + https://oss.sonatype.org/ + true + 60 + +