build-logic: switch to full publish plugin
This commit is contained in:
parent
50c99d6190
commit
c625b2114a
1 changed files with 2 additions and 5 deletions
|
@ -2,9 +2,8 @@
|
||||||
|
|
||||||
package dev.msfjarvis.aps.gradle
|
package dev.msfjarvis.aps.gradle
|
||||||
|
|
||||||
import com.vanniktech.maven.publish.AndroidSingleVariantLibrary
|
|
||||||
import com.vanniktech.maven.publish.MavenPublishBaseExtension
|
import com.vanniktech.maven.publish.MavenPublishBaseExtension
|
||||||
import com.vanniktech.maven.publish.MavenPublishBasePlugin
|
import com.vanniktech.maven.publish.MavenPublishPlugin
|
||||||
import com.vanniktech.maven.publish.SonatypeHost
|
import com.vanniktech.maven.publish.SonatypeHost
|
||||||
import org.gradle.api.Plugin
|
import org.gradle.api.Plugin
|
||||||
import org.gradle.api.Project
|
import org.gradle.api.Project
|
||||||
|
@ -20,14 +19,12 @@ class PublishedAndroidLibraryPlugin : Plugin<Project> {
|
||||||
override fun apply(project: Project) {
|
override fun apply(project: Project) {
|
||||||
project.plugins.run {
|
project.plugins.run {
|
||||||
apply(LibraryPlugin::class)
|
apply(LibraryPlugin::class)
|
||||||
apply(MavenPublishBasePlugin::class)
|
apply(MavenPublishPlugin::class)
|
||||||
apply(SigningPlugin::class)
|
apply(SigningPlugin::class)
|
||||||
}
|
}
|
||||||
project.extensions.getByType<MavenPublishBaseExtension>().run {
|
project.extensions.getByType<MavenPublishBaseExtension>().run {
|
||||||
publishToMavenCentral(SonatypeHost.DEFAULT)
|
publishToMavenCentral(SonatypeHost.DEFAULT)
|
||||||
signAllPublications()
|
signAllPublications()
|
||||||
configure(AndroidSingleVariantLibrary())
|
|
||||||
pomFromGradleProperties()
|
|
||||||
}
|
}
|
||||||
project.afterEvaluate {
|
project.afterEvaluate {
|
||||||
project.extensions.getByType<SigningExtension>().run {
|
project.extensions.getByType<SigningExtension>().run {
|
||||||
|
|
Loading…
Reference in a new issue