diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2022-06-20 14:25:57 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2022-06-20 14:32:14 +0530 |
commit | c625b2114a49f45a74cf207213589c5d8ad0a8b0 (patch) | |
tree | a4f2344a4d3c907fc09d3e82052bc4558fc4cb0e /build-logic/android-plugins | |
parent | 50c99d6190908e92cc0f9f60cac08fb598c751a8 (diff) |
build-logic: switch to full publish plugin
Diffstat (limited to 'build-logic/android-plugins')
-rw-r--r-- | build-logic/android-plugins/src/main/kotlin/dev/msfjarvis/aps/gradle/PublishedAndroidLibraryPlugin.kt | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/build-logic/android-plugins/src/main/kotlin/dev/msfjarvis/aps/gradle/PublishedAndroidLibraryPlugin.kt b/build-logic/android-plugins/src/main/kotlin/dev/msfjarvis/aps/gradle/PublishedAndroidLibraryPlugin.kt index 6e9c3d56..fea0c022 100644 --- a/build-logic/android-plugins/src/main/kotlin/dev/msfjarvis/aps/gradle/PublishedAndroidLibraryPlugin.kt +++ b/build-logic/android-plugins/src/main/kotlin/dev/msfjarvis/aps/gradle/PublishedAndroidLibraryPlugin.kt @@ -2,9 +2,8 @@ package dev.msfjarvis.aps.gradle -import com.vanniktech.maven.publish.AndroidSingleVariantLibrary 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 org.gradle.api.Plugin import org.gradle.api.Project @@ -20,14 +19,12 @@ class PublishedAndroidLibraryPlugin : Plugin<Project> { override fun apply(project: Project) { project.plugins.run { apply(LibraryPlugin::class) - apply(MavenPublishBasePlugin::class) + apply(MavenPublishPlugin::class) apply(SigningPlugin::class) } project.extensions.getByType<MavenPublishBaseExtension>().run { publishToMavenCentral(SonatypeHost.DEFAULT) signAllPublications() - configure(AndroidSingleVariantLibrary()) - pomFromGradleProperties() } project.afterEvaluate { project.extensions.getByType<SigningExtension>().run { |