Skip to content

Commit

Permalink
Update BuildPlugin.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanlorng authored Oct 26, 2024
1 parent b7e57cf commit db854b4
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,13 @@ class BuildPlugin : Plugin<Project> {
}

private fun PublishingExtension.setupMavenPublishing(target: Project) {
val javadocJar = target.tasks.findByName("javadocJar") ?: target.tasks.create("javadocJar", Jar::class) {
archiveClassifier.set("javadoc")
}
publications.withType<MavenPublication> {
val publishName = this.name
val javadocJar =
target.tasks.findByName("javadocJar") ?: target.tasks.create("javadocJar", Jar::class) {
archiveClassifier.set("javadoc")
archiveAppendix.set(publishName)
}
artifact(javadocJar)
pom {
name.set("compose-fluent-ui")
Expand Down

0 comments on commit db854b4

Please sign in to comment.