From cca06920b5783c4bd6b5340549d18f69a1eaf7b2 Mon Sep 17 00:00:00 2001 From: Nek-12 Date: Thu, 25 Jul 2024 17:30:25 +0200 Subject: [PATCH] fix publish workflow (2) --- build.gradle.kts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 66cba3b..8fa3f19 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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 @@ -89,8 +88,8 @@ subprojects { } } } - plugins.withType().configureEach { - the().apply { + afterEvaluate { + extensions.findByType()?.run { val isReleaseBuild = properties["release"]?.toString().toBoolean() publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL, false) if (isReleaseBuild) signAllPublications()