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 bd33527 commit dd96cfc
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,14 @@ 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"))
}

configure<JavaPluginExtension> {
withSourcesJar()
withJavadocJar() //TODO support dokka
withJavadocJar()
}

configure<PublishingExtension> {
Expand Down

0 comments on commit dd96cfc

Please sign in to comment.