Skip to content

Commit

Permalink
Use Gradle Nexus Publish Plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp94831 committed Feb 26, 2024
1 parent dd96cfc commit 1f49fd2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions sonatype/src/main/kotlin/com/bakdata/gradle/SonatypePlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,11 @@ class SonatypePlugin : Plugin<Project> {
apply(plugin = "signing")
apply(plugin = "org.gradle.maven-publish")

val javadocJar by tasks.creating(Jar::class) {
archiveClassifier.set("javadoc")
from(tasks.findByName("javadoc") ?: tasks.findByName("dokka"))
tasks.findByName("dokka")?.apply {
tasks.creating(Jar::class) {
archiveClassifier.set("javadoc")
from(this)
}
}

configure<JavaPluginExtension> {
Expand Down

0 comments on commit 1f49fd2

Please sign in to comment.