From c625b2114a49f45a74cf207213589c5d8ad0a8b0 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Mon, 20 Jun 2022 14:25:57 +0530 Subject: [PATCH] build-logic: switch to full publish plugin --- .../msfjarvis/aps/gradle/PublishedAndroidLibraryPlugin.kt | 7 ++----- 1 file 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 { override fun apply(project: Project) { project.plugins.run { apply(LibraryPlugin::class) - apply(MavenPublishBasePlugin::class) + apply(MavenPublishPlugin::class) apply(SigningPlugin::class) } project.extensions.getByType().run { publishToMavenCentral(SonatypeHost.DEFAULT) signAllPublications() - configure(AndroidSingleVariantLibrary()) - pomFromGradleProperties() } project.afterEvaluate { project.extensions.getByType().run {