Skip to content

Commit

Permalink
include source and javadoc jars to publish
Browse files Browse the repository at this point in the history
  • Loading branch information
haifengl committed Mar 3, 2025
1 parent 31a8af8 commit 755f56a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,3 @@ dokka {
}
}

// Build javadoc.jar from dokka task output
/*
tasks.register<Jar>("dokkaHtmlJar") {
dependsOn(tasks.dokkaGenerate)
from(tasks.dokkaGenerate.flatMap { it.outputDirectory })
archiveClassifier.set("html-docs")
}
*/
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ plugins {
id("buildlogic.kotlin-common-conventions")
id("buildlogic.maven-publish-conventions")
}

Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ plugins {
signing
}

java {
withSourcesJar()
withJavadocJar()
}

publishing {
publications {
create<MavenPublication>("mavenJava") {
Expand Down Expand Up @@ -69,3 +74,4 @@ signing {
sign(configurations.archives.get())
sign(publishing.publications["mavenJava"])
}

0 comments on commit 755f56a

Please sign in to comment.