Skip to content

Commit c0fd8cc

Browse files
authored
Fix the sign related configuration for publishing (#797)
1 parent ef3bf5f commit c0fd8cc

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

build.gradle.kts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ import org.springframework.boot.gradle.plugin.SpringBootPlugin
2222

2323
plugins {
2424
`java-library`
25+
`maven-publish`
2526
checkstyle
27+
signing
2628
id("org.jetbrains.kotlin.jvm") version "1.7.10" apply false
2729
id("com.github.spotbugs") version "5.0.9" apply false
2830
id("io.spring.dependency-management") version "1.0.12.RELEASE" apply false
@@ -279,10 +281,11 @@ listOf(
279281
}
280282
}
281283

282-
tasks.withType<Sign>().configureEach {
284+
signing {
283285
setRequired(isReleaseBuild)
284-
val publishing = extensions.findByName("publishing") as PublishingExtension
285-
sign(publishing.publications["mavenJava"])
286+
publishing.publications.configureEach {
287+
sign(this)
288+
}
286289
}
287290
}
288291
}

0 commit comments

Comments
 (0)