Skip to content

Commit 8acb95f

Browse files
committed
up
1 parent 1700645 commit 8acb95f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

build.gradle.kts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,11 @@ publishing.publications.register("mavenJava", MavenPublication::class) {
8686

8787
configurations.all { attributes.attribute(TARGET_JVM_VERSION_ATTRIBUTE, 11) }
8888

89-
java {
90-
withJavadocJar()
91-
withSourcesJar()
89+
subprojects {
90+
apply<JavaPlugin>() // or: apply(plugin = "java")
91+
92+
configure<JavaPluginExtension> {
93+
withSourcesJar()
94+
withJavadocJar()
95+
}
9296
}

0 commit comments

Comments
 (0)