Skip to content

Commit 33453e2

Browse files
author
Till Krullmann
committed
Add sources and javadoc JARs to publications for each plugin subproject
1 parent 7dff282 commit 33453e2

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

build.gradle.kts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ subprojects {
2323
with(the<GradlePluginDevelopmentExtension>()) {
2424
isAutomatedPublishing = true
2525
}
26+
27+
with(the<JavaPluginExtension>()) {
28+
withSourcesJar()
29+
withJavadocJar()
30+
}
2631
}
2732

2833

@@ -79,8 +84,8 @@ subprojects {
7984
"dokkaJavadocPlugin"("org.jetbrains.dokka:kotlin-as-java-plugin:1.4.20")
8085
}
8186

82-
tasks.withType<Jar>().matching { it.name == "javadocJar" }
83-
.configureEach {
87+
tasks.withType<Jar>().matching { it.name == "javadocJar" || it.name == "publishPluginJavaDocsJar" }
88+
.all {
8489
from(tasks.named("dokkaJavadoc"))
8590
}
8691

@@ -124,6 +129,7 @@ subprojects {
124129
val githubUrl = project.extra["github.url"] as String
125130

126131
with(the<com.gradle.publish.PluginBundleExtension>()) {
132+
127133
website = githubUrl
128134
vcsUrl = githubUrl
129135
description = "A suite of Gradle plugins for building, publishing and managing Helm charts."

0 commit comments

Comments
 (0)