Skip to content

Commit

Permalink
fix publish workflow (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nek-12 committed Jul 25, 2024
1 parent 90089c3 commit cca0692
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import com.vanniktech.maven.publish.MavenPublishBaseExtension
import com.vanniktech.maven.publish.MavenPublishPlugin
import com.vanniktech.maven.publish.SonatypeHost
import nl.littlerobots.vcu.plugin.versionCatalogUpdate
import nl.littlerobots.vcu.plugin.versionSelector
Expand Down Expand Up @@ -89,8 +88,8 @@ subprojects {
}
}
}
plugins.withType<MavenPublishPlugin>().configureEach {
the<MavenPublishBaseExtension>().apply {
afterEvaluate {
extensions.findByType<MavenPublishBaseExtension>()?.run {
val isReleaseBuild = properties["release"]?.toString().toBoolean()
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL, false)
if (isReleaseBuild) signAllPublications()
Expand Down

0 comments on commit cca0692

Please sign in to comment.