summaryrefslogtreecommitdiff
path: root/build-logic/android-plugins/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'build-logic/android-plugins/src/main')
-rw-r--r--build-logic/android-plugins/src/main/kotlin/com.github.android-password-store.published-android-library.gradle.kts17
1 files changed, 16 insertions, 1 deletions
diff --git a/build-logic/android-plugins/src/main/kotlin/com.github.android-password-store.published-android-library.gradle.kts b/build-logic/android-plugins/src/main/kotlin/com.github.android-password-store.published-android-library.gradle.kts
index 3aa55b7a..8e079a89 100644
--- a/build-logic/android-plugins/src/main/kotlin/com.github.android-password-store.published-android-library.gradle.kts
+++ b/build-logic/android-plugins/src/main/kotlin/com.github.android-password-store.published-android-library.gradle.kts
@@ -3,12 +3,27 @@
* SPDX-License-Identifier: GPL-3.0-only
*/
+import com.vanniktech.maven.publish.AndroidSingleVariantLibrary
+import com.vanniktech.maven.publish.MavenPublishBaseExtension
+import com.vanniktech.maven.publish.SonatypeHost
import org.gradle.kotlin.dsl.provideDelegate
plugins {
id("com.github.android-password-store.android-library")
- id("com.vanniktech.maven.publish")
+ id("com.vanniktech.maven.publish.base")
id("org.jetbrains.dokka")
+ id("signing")
+}
+
+configure<MavenPublishBaseExtension> {
+ group = requireNotNull(project.findProperty("GROUP"))
+ version = requireNotNull(project.findProperty("VERSION_NAME"))
+ mavenPublishing {
+ publishToMavenCentral(SonatypeHost.DEFAULT)
+ signAllPublications()
+ configure(AndroidSingleVariantLibrary())
+ }
+ pomFromGradleProperties()
}
afterEvaluate {