diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2021-12-11 00:12:54 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-11 00:12:54 +0530 |
commit | 7d39bc0ae201361eb787055ccb0d5edcb31f83a2 (patch) | |
tree | f1f7154a7ecf17acd2bb45ed8735a4750203d0c7 /build-logic/android-plugins | |
parent | b59c4f068cd9f4791a78d94c3c75f7484423f977 (diff) |
Miscellaneous build and CI cleanups (#1587)
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) + } +} |