Skip to content

Commit

Permalink
Add javadoc to publications
Browse files Browse the repository at this point in the history
  • Loading branch information
Kantis committed Mar 20, 2024
1 parent e3d6fe7 commit 77a4b40
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions buildSrc/src/main/kotlin/kotest-publishing-conventions.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ java {
withSourcesJar()
}

val javadoc = tasks.named("javadoc")

val javadocJar by tasks.creating(Jar::class) {
group = JavaBasePlugin.DOCUMENTATION_GROUP
description = "Assembles java doc to jar"
archiveClassifier.set("javadoc")
from(javadoc)
}


publishing {
repositories {
maven {
Expand All @@ -55,6 +65,9 @@ publishing {

publications.withType<MavenPublication>().configureEach {
//if (Ci.isRelease)
// Add javadoc so Maven Central will accept the publication
artifact(javadocJar)

pom {
name.set("kotest-property-datetime")
description.set("Kotest property testing generators for kotlinx-datetime")
Expand Down

0 comments on commit 77a4b40

Please sign in to comment.