File tree Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,6 @@ nexusPublishing {
1212 sonatype {
1313 nexusUrl.set(uri(" https://s01.oss.sonatype.org/service/local/" ))
1414 snapshotRepositoryUrl.set(uri(" https://s01.oss.sonatype.org/content/repositories/snapshots/" ))
15- // System.getenv("ORG_GRADLE_PROJECT_sonatypeUsername")?.let { username.set(it) }
16- // System.getenv("ORG_GRADLE_PROJECT_sonatypePassword")?.let { password.set(it) }
1715 }
1816 }
1917}
Original file line number Diff line number Diff line change @@ -43,12 +43,10 @@ publishing {
4343 }
4444}
4545
46- // signing {
47- // setRequired { !project.version.toString().endsWith("-SNAPSHOT") && !project.hasProperty("skipSigning") }
48- // if (project.hasProperty("signingKey")) {
49- // useInMemoryPgpKeys(properties["signingKey"].toString(), properties["signingPassword"].toString())
50- // } else {
51- // useGpgCmd()
52- // }
53- // sign(publishing.publications["mavenJava"])
54- // }
46+ signing {
47+ setRequired { ! project.version.toString().endsWith(" -SNAPSHOT" ) && ! project.hasProperty(" skipSigning" ) }
48+ val signingKey: String? by project
49+ val signingPassword: String? by project
50+ useInMemoryPgpKeys(signingKey, signingPassword)
51+ sign(publishing.publications[" maven" ])
52+ }
You can’t perform that action at this time.
0 commit comments