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 78d8797 commit bd33527
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions sonatype/src/main/kotlin/com/bakdata/gradle/SonatypePlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ class SonatypePlugin : Plugin<Project> {

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

configure<PublishingExtension> {
Expand All @@ -227,12 +227,10 @@ class SonatypePlugin : Plugin<Project> {
}

configure<SigningExtension> {
sign(the<PublishingExtension>().publications["sonatype"])
sign(the<PublishingExtension>().publications)
}

tasks.withType<InitializeNexusStagingRepository> {
mustRunAfter(tasks.withType<Sign>())
}
tasks.named(PublishingPlugin.PUBLISH_LIFECYCLE_TASK_NAME) { dependsOn(tasks.withType<Sign>()) }
}
}

Expand Down

0 comments on commit bd33527

Please sign in to comment.