From 0c6c6a609f0baf468a0b0a4e7ff6ad6d27c00fce Mon Sep 17 00:00:00 2001 From: Nek-12 Date: Thu, 25 Jul 2024 17:30:15 +0200 Subject: [PATCH] fix publishing workflow (2) --- build.gradle.kts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index c2e1c6c..7c461c1 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -43,8 +43,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()