Skip to content

Commit

Permalink
fixed signing configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjenx committed Oct 31, 2024
1 parent fabd036 commit 86a8607
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
6 changes: 2 additions & 4 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.MavenPublishBasePlugin
import com.vanniktech.maven.publish.SonatypeHost
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

Expand All @@ -23,12 +22,11 @@ allprojects {
}

subprojects {
plugins.withType<MavenPublishBasePlugin>().configureEach {
plugins.withId("com.vanniktech.maven.publish") {
extensions.configure<MavenPublishBaseExtension> {
logger.lifecycle("Configuring Maven Publishing for ${name}:${version}")
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL, automaticRelease = true)
// https://github.com/vanniktech/gradle-maven-publish-plugin/issues/865
//signAllPublications()
signAllPublications()
}
extensions.configure<PublishingExtension> {
logger.lifecycle("Publishing ${project.name}:${version}")
Expand Down
5 changes: 0 additions & 5 deletions library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,3 @@ androidComponents {
(it as HasUnitTestBuilder).enableUnitTest = false
}
}

// https://github.com/vanniktech/gradle-maven-publish-plugin/issues/865
mavenPublishing {
signAllPublications()
}

0 comments on commit 86a8607

Please sign in to comment.