diff options
Diffstat (limited to 'build-logic/android-plugins')
3 files changed, 24 insertions, 11 deletions
diff --git a/build-logic/android-plugins/build.gradle.kts b/build-logic/android-plugins/build.gradle.kts index 0f6111ba..413ab560 100644 --- a/build-logic/android-plugins/build.gradle.kts +++ b/build-logic/android-plugins/build.gradle.kts @@ -19,5 +19,7 @@ gradlePlugin { dependencies { implementation(libs.build.agp) + implementation(libs.build.dokka) + implementation(libs.build.mavenpublish) implementation(libs.build.semver) } diff --git a/build-logic/android-plugins/src/main/kotlin/com.github.android-password-store.android-library.gradle.kts b/build-logic/android-plugins/src/main/kotlin/com.github.android-password-store.android-library.gradle.kts index 993bc2a4..cb6d8a40 100644 --- a/build-logic/android-plugins/src/main/kotlin/com.github.android-password-store.android-library.gradle.kts +++ b/build-logic/android-plugins/src/main/kotlin/com.github.android-password-store.android-library.gradle.kts @@ -3,18 +3,7 @@ * SPDX-License-Identifier: GPL-3.0-only */ -import org.gradle.kotlin.dsl.provideDelegate -import org.gradle.plugins.signing.SigningExtension - plugins { id("com.android.library") id("com.github.android-password-store.android-common") } - -afterEvaluate { - extensions.configure<SigningExtension> { - val signingKey: String? by project - val signingPassword: String? by project - useInMemoryPgpKeys(signingKey, signingPassword) - } -} 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 new file mode 100644 index 00000000..85ebdbe3 --- /dev/null +++ b/build-logic/android-plugins/src/main/kotlin/com.github.android-password-store.published-android-library.gradle.kts @@ -0,0 +1,22 @@ +/* + * Copyright © 2014-2021 The Android Password Store Authors. All Rights Reserved. + * SPDX-License-Identifier: GPL-3.0-only + */ + +import org.gradle.kotlin.dsl.configure +import org.gradle.kotlin.dsl.provideDelegate +import org.gradle.plugins.signing.SigningExtension + +plugins { + id("com.github.android-password-store.android-library") + id("com.vanniktech.maven.publish") + id("org.jetbrains.dokka") +} + +afterEvaluate { + extensions.configure<SigningExtension> { + val signingKey: String? by project + val signingPassword: String? by project + useInMemoryPgpKeys(signingKey, signingPassword) + } +} |