File tree Expand file tree Collapse file tree 9 files changed +18
-8
lines changed
Expand file tree Collapse file tree 9 files changed +18
-8
lines changed Original file line number Diff line number Diff line change 6969 ORG_GRADLE_PROJECT_mavenCentralUsername : ${{ secrets.MAVEN_CENTRAL_USERNAME }}
7070 ORG_GRADLE_PROJECT_mavenCentralPassword : ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
7171
72+ ORG_GRADLE_PROJECT_signMavenPackages : true
7273 ORG_GRADLE_PROJECT_signingInMemoryKey : ${{ secrets.SIGNING_IN_MEMORY_KEY }}
7374 ORG_GRADLE_PROJECT_signingInMemoryKeyPassword : ${{ secrets.SIGNING_IN_MEMORY_KEY_PASSWORD }}
7475
9293 GRADLE_PUBLISH_KEY : ${{ secrets.GRADLE_PUBLISH_KEY }}
9394 GRADLE_PUBLISH_SECRET : ${{ secrets.GRADLE_PUBLISH_SECRET }}
9495
96+ ORG_GRADLE_PROJECT_signMavenPackages : true
9597 ORG_GRADLE_PROJECT_signingInMemoryKey : ${{ secrets.SIGNING_IN_MEMORY_KEY }}
9698 ORG_GRADLE_PROJECT_signingInMemoryKeyPassword : ${{ secrets.SIGNING_IN_MEMORY_KEY_PASSWORD }}
9799
@@ -104,6 +106,7 @@ jobs:
104106 GRADLE_PUBLISH_KEY : ${{ secrets.GRADLE_PUBLISH_KEY }}
105107 GRADLE_PUBLISH_SECRET : ${{ secrets.GRADLE_PUBLISH_SECRET }}
106108
109+ ORG_GRADLE_PROJECT_signMavenPackages : true
107110 ORG_GRADLE_PROJECT_signingInMemoryKey : ${{ secrets.SIGNING_IN_MEMORY_KEY }}
108111 ORG_GRADLE_PROJECT_signingInMemoryKeyPassword : ${{ secrets.SIGNING_IN_MEMORY_KEY_PASSWORD }}
109112
Original file line number Diff line number Diff line change @@ -38,7 +38,8 @@ dependencies {
3838
3939mavenPublishing{
4040 publishToMavenCentral(SonatypeHost .CENTRAL_PORTAL , automaticRelease = true )
41- signAllPublications()
41+ if (project.hasProperty(" signMavenPackages" ))
42+ signAllPublications()
4243
4344 pom{
4445 name.set(" Processing Core" )
Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ sourceSets {
3232
3333mavenPublishing {
3434 publishToMavenCentral(com.vanniktech.maven.publish.SonatypeHost .CENTRAL_PORTAL , automaticRelease = true )
35- signAllPublications()
35+ if (project.hasProperty(" signing.signMavenPackages" ))
36+ signAllPublications()
3637 coordinates(" $group .core" , name, version.toString())
3738
3839 pom {
Original file line number Diff line number Diff line change @@ -61,7 +61,8 @@ mavenPublishing {
6161 coordinates(" $group .core" , name, version.toString())
6262 publishToMavenCentral(SonatypeHost .CENTRAL_PORTAL , automaticRelease = true )
6363
64- signAllPublications()
64+ if (project.hasProperty(" signMavenPackages" ))
65+ signAllPublications()
6566
6667 pom {
6768 name.set(" Processing IO" )
Original file line number Diff line number Diff line change @@ -53,7 +53,8 @@ mavenPublishing {
5353 coordinates(" $group .core" , name, version.toString())
5454 publishToMavenCentral(SonatypeHost .CENTRAL_PORTAL , automaticRelease = true )
5555
56- signAllPublications()
56+ if (project.hasProperty(" signMavenPackages" ))
57+ signAllPublications()
5758
5859 pom {
5960 name.set(" Processing Net" )
Original file line number Diff line number Diff line change @@ -55,7 +55,8 @@ mavenPublishing{
5555 coordinates(" $group .core" , name, version.toString())
5656 publishToMavenCentral(SonatypeHost .CENTRAL_PORTAL , automaticRelease = true )
5757
58- signAllPublications()
58+ if (project.hasProperty(" signMavenPackages" ))
59+ signAllPublications()
5960
6061 pom{
6162 name.set(" Processing PDF" )
Original file line number Diff line number Diff line change @@ -55,7 +55,8 @@ mavenPublishing {
5555 coordinates(" $group .core" , name, version.toString())
5656 publishToMavenCentral(SonatypeHost .CENTRAL_PORTAL , automaticRelease = true )
5757
58- signAllPublications()
58+ if (project.hasProperty(" signMavenPackages" ))
59+ signAllPublications()
5960
6061 pom {
6162 name.set(" Processing Serial" )
Original file line number Diff line number Diff line change @@ -55,7 +55,8 @@ mavenPublishing {
5555 coordinates(" $group .core" , name, version.toString())
5656 publishToMavenCentral(SonatypeHost .CENTRAL_PORTAL , automaticRelease = true )
5757
58- signAllPublications()
58+ if (project.hasProperty(" signMavenPackages" ))
59+ signAllPublications()
5960
6061 pom {
6162 name.set(" Processing SVG" )
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ mavenPublishing{
5050 publishToMavenCentral(SonatypeHost .CENTRAL_PORTAL , automaticRelease = true )
5151
5252 // Only sign if signing is set up
53- if (project.hasProperty(" signing.keyId " ) || project.hasProperty( " signingInMemoryKey " ))
53+ if (project.hasProperty(" signing.signMavenPackages " ))
5454 signAllPublications()
5555
5656 pom{
You can’t perform that action at this time.
0 commit comments