Skip to content

Commit

Permalink
gradle: fix maven publication
Browse files Browse the repository at this point in the history
  • Loading branch information
hrach committed Mar 16, 2022
1 parent efd8ca9 commit 4a2964c
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,14 @@ subprojects {
}
}

extensions.findByType<MavenPublishBaseExtension>()?.apply {
group = requireNotNull(project.findProject("GROUP"))
version = requireNotNull(project.findProject("VERSION_NAME"))
pomFromGradleProperties()
publishToMavenCentral(SonatypeHost.S01)
signAllPublications()
configure(AndroidSingleVariantLibrary())
plugins.withId("com.vanniktech.maven.publish.base") {
configure<MavenPublishBaseExtension> {
group = requireNotNull(project.findProperty("GROUP"))
version = requireNotNull(project.findProperty("VERSION_NAME"))
pomFromGradleProperties()
publishToMavenCentral(SonatypeHost.S01)
signAllPublications()
configure(AndroidSingleVariantLibrary())
}
}
}

0 comments on commit 4a2964c

Please sign in to comment.