File tree Expand file tree Collapse file tree
build-logic/conventions/src/main/kotlin Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,12 +3,9 @@ import org.gradle.api.publish.PublishingExtension
33import org.gradle.api.publish.maven.MavenPublication
44import org.gradle.kotlin.dsl.configure
55import org.gradle.kotlin.dsl.create
6- import org.gradle.kotlin.dsl.the
7- import org.gradle.plugins.signing.SigningExtension
86
97fun Project.configureMavenPublish () {
108 plugins.apply (" maven-publish" )
11- plugins.apply (" signing" )
129
1310 val publicationVersion = project.version.toString() + " -SNAPSHOT"
1411 val isReleaseVersion = ! publicationVersion.endsWith(" SNAPSHOT" )
@@ -65,14 +62,4 @@ fun Project.configureMavenPublish() {
6562 }
6663 }
6764 }
68-
69- configure<SigningExtension > {
70- isRequired = isReleaseVersion && gradle.taskGraph.hasTask(" publish" )
71- useInMemoryPgpKeys(
72- findProperty(" signing.keyId" ) as String? ? : System .getenv(" OSSRH_SIGNING_KEY" ),
73- findProperty(" signing.password" ) as String? ? : System .getenv(" OSSRH_SIGNING_PASSWORD" )
74- )
75-
76- sign(the<PublishingExtension >().publications.named(" javaOSSRH" ).get())
77- }
7865}
You can’t perform that action at this time.
0 commit comments