diff --git a/build-logic/conventions/src/main/kotlin/kiwi/orbit/compose/buildlogic/PublishPlugin.kt b/build-logic/conventions/src/main/kotlin/kiwi/orbit/compose/buildlogic/PublishPlugin.kt index d279e2d03..e97b4eb5c 100644 --- a/build-logic/conventions/src/main/kotlin/kiwi/orbit/compose/buildlogic/PublishPlugin.kt +++ b/build-logic/conventions/src/main/kotlin/kiwi/orbit/compose/buildlogic/PublishPlugin.kt @@ -1,5 +1,6 @@ package kiwi.orbit.compose.buildlogic +import com.vanniktech.maven.publish.AndroidSingleVariantLibrary import com.vanniktech.maven.publish.MavenPublishBaseExtension import com.vanniktech.maven.publish.SonatypeHost import java.time.Year @@ -33,11 +34,14 @@ class PublishPlugin : Plugin { } } + @Suppress("UnstableApiUsage") extensions.configure { group = requireNotNull(project.findProperty("GROUP")) version = requireNotNull(project.findProperty("VERSION_NAME")) + publishToMavenCentral(SonatypeHost.S01, automaticRelease = true) signAllPublications() + configure(AndroidSingleVariantLibrary()) } tasks.withType().configureEach {