File tree Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -27,16 +27,13 @@ jobs:
2727 with :
2828 java-version : ' 17'
2929 distribution : ' temurin'
30- server-id : ossrh
31- server-username : OSSRH_USERNAME
32- server-password : OSSRH_TOKEN
33- gpg-private-key : ${{ secrets.GPG_PRIVATE_KEY }}
34- gpg-passphrase : GPG_PASSPHRASE
3530 - name : Publish package
3631 uses : gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629
3732 with :
3833 arguments : publish
3934 env :
4035 OSSRH_USERNAME : ${{ secrets.OSSRH_USERNAME }}
4136 OSSRH_TOKEN : ${{ secrets.OSSRH_TOKEN }}
42- GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
37+ ORG_GRADLE_PROJECT_signingKeyId : ' 5F9C93F9D0B2438E267AA9F36A4F0CEF73C69E9C'
38+ ORG_GRADLE_PROJECT_signingKey : ${{ secrets.GPG_PRIVATE_KEY }}
39+ ORG_GRADLE_PROJECT_signingPassword : ${{ secrets.GPG_PASSPHRASE }}
Original file line number Diff line number Diff line change @@ -147,11 +147,11 @@ publishing {
147147}
148148
149149signing {
150+ val signingKeyId: String? by project
151+ val signingKey: String? by project
152+ val signingPassword: String? by project
153+ useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword)
150154 sign(publishing.publications[" mavenJava" ])
151- useGpgCmd()
152- gpg {
153- passphrase = System .getenv(" GPG_PASSPHRASE" )
154- }
155155}
156156
157157tasks.javadoc {
You can’t perform that action at this time.
0 commit comments