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 ee33b2c commit 566738a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sonatype/src/main/kotlin/com/bakdata/gradle/SonatypePlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

package com.bakdata.gradle

import io.github.gradlenexus.publishplugin.InitializeNexusStagingRepository
import io.github.gradlenexus.publishplugin.NexusPublishExtension
import org.gradle.api.GradleException
import org.gradle.api.Plugin
Expand Down Expand Up @@ -234,6 +235,10 @@ class SonatypePlugin : Plugin<Project> {
configure<SigningExtension> {
sign(the<PublishingExtension>().publications)
}

tasks.withType<InitializeNexusStagingRepository> {
shouldRunAfter(tasks.withType<Sign>())
}
}
}

Expand Down

0 comments on commit 566738a

Please sign in to comment.