File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,9 @@ import org.springframework.boot.gradle.plugin.SpringBootPlugin
2222
2323plugins {
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}
You can’t perform that action at this time.
0 commit comments