Skip to content

Commit

Permalink
Add sources and javadoc JARs to publications for each plugin subproject
Browse files Browse the repository at this point in the history
  • Loading branch information
Till Krullmann committed Jan 28, 2021
1 parent 7dff282 commit 33453e2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ subprojects {
with(the<GradlePluginDevelopmentExtension>()) {
isAutomatedPublishing = true
}

with(the<JavaPluginExtension>()) {
withSourcesJar()
withJavadocJar()
}
}


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

tasks.withType<Jar>().matching { it.name == "javadocJar" }
.configureEach {
tasks.withType<Jar>().matching { it.name == "javadocJar" || it.name == "publishPluginJavaDocsJar" }
.all {
from(tasks.named("dokkaJavadoc"))
}

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

with(the<com.gradle.publish.PluginBundleExtension>()) {

website = githubUrl
vcsUrl = githubUrl
description = "A suite of Gradle plugins for building, publishing and managing Helm charts."
Expand Down

0 comments on commit 33453e2

Please sign in to comment.