diff --git a/build-logic/convention/src/main/kotlin/PublishConvention.kt b/build-logic/convention/src/main/kotlin/PublishConvention.kt index 7511cd9..e237753 100644 --- a/build-logic/convention/src/main/kotlin/PublishConvention.kt +++ b/build-logic/convention/src/main/kotlin/PublishConvention.kt @@ -10,6 +10,8 @@ class PublishConvention : Plugin { with(pluginManager) { apply(libs.gradleMavenPublishPluginId) } + } + target.afterEvaluate { extensions.configure { publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL, automaticRelease = false) signAllPublications() @@ -17,7 +19,7 @@ class PublishConvention : Plugin { coordinates( rootProject.group.toString(), "kotlin-${project.name}", - version.toString() + project.version.toString() ) pom {