diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8c77e66e..0e47aa9c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,6 +27,14 @@ jobs: git config user.name "github-actions[bot]" git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + - name: Import GPG key + uses: crazy-max/ghaction-import-gpg@v6 + with: + gpg_private_key: ${{ secrets.GPG_KEY }} + passphrase: ${{ secrets.GPG_PASSPHRASE }} + - name: List keys + run: gpg -K + - name: Setup SSH uses: webfactory/ssh-agent@v0.9.0 with: diff --git a/pom.xml b/pom.xml index 63cdc7c4..b58b05e5 100644 --- a/pom.xml +++ b/pom.xml @@ -6,9 +6,26 @@ oras-java-sdk 0.1.1-SNAPSHOT jar - ORAS Java SDK + ${project.groupId}:${project.artifactId} + ORAS Java SDK https://github.com/oras-project/oras-java + + + The Apache License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + + + + Valentin Delaye + jonesbusy@jonesbusy.com + ORAS + https://oras.land/ + + + scm:git:git@github.com:oras-project/oras-java.git scm:git:git@github.com:oras-project/oras-java.git @@ -52,7 +69,10 @@ 2.44.2 3.5.0 3.11.2 + 3.3.1 3.1.1 + 3.2.7 + 0.7.0 17 @@ -197,6 +217,20 @@ + + org.apache.maven.plugins + maven-gpg-plugin + ${maven-gpg-plugin.version} + + + sign-artifacts + + sign + + verify + + + org.apache.maven.plugins maven-javadoc-plugin @@ -216,6 +250,31 @@ + + org.sonatype.central + central-publishing-maven-plugin + ${central-publishing-maven-plugin.version} + true + + central + true + published + + + + org.apache.maven.plugins + maven-source-plugin + ${maven-source-plugin.version} + + + attach-sources + + jar-no-fork + + verify + + + org.apache.maven.plugins maven-release-plugin @@ -223,6 +282,8 @@ @{project.version} [ci skip] + + @@ -239,7 +300,7 @@ - [3.9.8,) + [3.9.9,) [${maven.compiler.release},) @@ -323,8 +384,75 @@ org.apache.maven.plugins maven-javadoc-plugin + + org.apache.maven.plugins + maven-source-plugin + + + + release + + true + + + + + org.apache.maven.plugins + maven-enforcer-plugin + + + org.apache.maven.plugins + maven-javadoc-plugin + + + org.apache.maven.plugins + maven-source-plugin + + + org.apache.maven.plugins + maven-gpg-plugin + + + org.sonatype.central + central-publishing-maven-plugin + + + org.apache.maven.plugins + maven-release-plugin + + + + + + sign-only + + true + + + + + org.apache.maven.plugins + maven-enforcer-plugin + + + org.apache.maven.plugins + maven-javadoc-plugin + + + org.apache.maven.plugins + maven-source-plugin + + + org.apache.maven.plugins + maven-gpg-plugin + + + + + +