2021-11-29 02:19:27 +05:30
|
|
|
/*
|
2024-08-14 00:31:25 +05:30
|
|
|
* Copyright © 2014-2024 The Android Password Store Authors. All Rights Reserved.
|
2021-11-29 02:19:27 +05:30
|
|
|
* SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
*/
|
2021-12-22 21:47:19 +05:30
|
|
|
|
2021-12-26 11:59:57 +05:30
|
|
|
plugins { `kotlin-dsl` }
|
2021-11-14 11:27:44 +05:30
|
|
|
|
2023-12-16 21:34:40 +05:30
|
|
|
kotlin.jvmToolchain(17)
|
2021-12-22 21:47:19 +05:30
|
|
|
|
2022-06-05 03:56:37 +05:30
|
|
|
gradlePlugin {
|
|
|
|
plugins {
|
|
|
|
register("android-application") {
|
|
|
|
id = "com.github.android-password-store.android-application"
|
|
|
|
implementationClass = "app.passwordstore.gradle.ApplicationPlugin"
|
2022-12-02 01:57:02 +05:30
|
|
|
}
|
2022-06-05 03:56:37 +05:30
|
|
|
register("android-library") {
|
|
|
|
id = "com.github.android-password-store.android-library"
|
|
|
|
implementationClass = "app.passwordstore.gradle.LibraryPlugin"
|
2022-12-02 01:57:02 +05:30
|
|
|
}
|
2022-06-30 21:33:59 +05:30
|
|
|
register("git-hooks") {
|
|
|
|
id = "com.github.android-password-store.git-hooks"
|
|
|
|
implementationClass = "app.passwordstore.gradle.GitHooksPlugin"
|
2022-12-02 01:57:02 +05:30
|
|
|
}
|
2022-06-05 03:56:37 +05:30
|
|
|
register("kotlin-android") {
|
|
|
|
id = "com.github.android-password-store.kotlin-android"
|
|
|
|
implementationClass = "app.passwordstore.gradle.KotlinAndroidPlugin"
|
|
|
|
}
|
|
|
|
register("kotlin-common") {
|
|
|
|
id = "com.github.android-password-store.kotlin-common"
|
|
|
|
implementationClass = "app.passwordstore.gradle.KotlinCommonPlugin"
|
|
|
|
}
|
|
|
|
register("kotlin-kapt") {
|
|
|
|
id = "com.github.android-password-store.kotlin-kapt"
|
|
|
|
implementationClass = "app.passwordstore.gradle.KotlinKaptPlugin"
|
|
|
|
}
|
2023-04-27 00:49:03 +05:30
|
|
|
register("kotlin-jvm-library") {
|
|
|
|
id = "com.github.android-password-store.kotlin-jvm-library"
|
|
|
|
implementationClass = "app.passwordstore.gradle.KotlinJVMLibrary"
|
2022-06-05 03:56:37 +05:30
|
|
|
}
|
|
|
|
register("published-android-library") {
|
|
|
|
id = "com.github.android-password-store.published-android-library"
|
|
|
|
implementationClass = "app.passwordstore.gradle.PublishedAndroidLibraryPlugin"
|
2022-12-02 01:57:02 +05:30
|
|
|
}
|
2022-06-30 21:33:59 +05:30
|
|
|
register("psl") {
|
2022-06-05 03:56:37 +05:30
|
|
|
id = "com.github.android-password-store.psl-plugin"
|
|
|
|
implementationClass = "app.passwordstore.gradle.psl.PublicSuffixListPlugin"
|
2022-12-02 01:57:02 +05:30
|
|
|
}
|
2022-06-30 21:33:59 +05:30
|
|
|
register("rename-artifacts") {
|
|
|
|
id = "com.github.android-password-store.rename-artifacts"
|
|
|
|
implementationClass = "app.passwordstore.gradle.RenameArtifactsPlugin"
|
2022-12-02 01:57:02 +05:30
|
|
|
}
|
2022-06-05 03:56:37 +05:30
|
|
|
register("sentry") {
|
|
|
|
id = "com.github.android-password-store.sentry"
|
|
|
|
implementationClass = "app.passwordstore.gradle.SentryPlugin"
|
2022-12-02 01:57:02 +05:30
|
|
|
}
|
2024-08-14 00:18:51 +05:30
|
|
|
register("spotless") {
|
|
|
|
id = "com.github.android-password-store.spotless"
|
|
|
|
implementationClass = "app.passwordstore.gradle.SpotlessPlugin"
|
|
|
|
}
|
2022-06-30 21:33:59 +05:30
|
|
|
register("versioning") {
|
|
|
|
id = "com.github.android-password-store.versioning-plugin"
|
2022-06-05 03:56:37 +05:30
|
|
|
implementationClass = "app.passwordstore.gradle.versioning.VersioningPlugin"
|
2022-12-02 01:57:02 +05:30
|
|
|
}
|
2024-03-22 00:08:20 +05:30
|
|
|
register("versions") {
|
|
|
|
id = "com.github.android-password-store.versions"
|
|
|
|
implementationClass = "app.passwordstore.gradle.DependencyUpdatesPlugin"
|
|
|
|
}
|
2022-06-05 03:56:37 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-14 11:27:44 +05:30
|
|
|
dependencies {
|
2023-02-27 21:25:37 +05:30
|
|
|
implementation(platform(libs.kotlin.bom))
|
2021-11-29 02:19:27 +05:30
|
|
|
implementation(libs.build.agp)
|
2022-10-29 07:29:46 +05:30
|
|
|
implementation(libs.build.diffutils)
|
|
|
|
implementation(libs.build.download)
|
2023-07-12 16:00:46 +05:30
|
|
|
implementation(libs.build.javapoet)
|
2021-11-14 12:10:38 +05:30
|
|
|
implementation(libs.build.kotlin)
|
2022-06-30 21:33:59 +05:30
|
|
|
implementation(libs.build.mavenpublish)
|
2022-07-17 00:55:12 +05:30
|
|
|
implementation(libs.build.metalava)
|
2023-03-26 19:00:38 +05:30
|
|
|
implementation(libs.build.moshi)
|
|
|
|
implementation(libs.build.moshi.kotlin)
|
2021-11-29 02:19:27 +05:30
|
|
|
implementation(libs.build.okhttp)
|
2022-07-07 14:28:45 +05:30
|
|
|
implementation(libs.build.r8)
|
2022-06-30 21:33:59 +05:30
|
|
|
implementation(libs.build.semver)
|
|
|
|
implementation(libs.build.sentry)
|
2024-08-14 00:18:51 +05:30
|
|
|
implementation(libs.build.spotless)
|
2024-03-22 00:08:20 +05:30
|
|
|
implementation(libs.build.vcu)
|
2023-06-15 13:58:31 +05:30
|
|
|
implementation(libs.kotlinx.coroutines.core)
|
2023-11-28 11:49:47 +05:30
|
|
|
|
|
|
|
// Expose the generated version catalog API to the plugin.
|
|
|
|
implementation(files(libs::class.java.superclass.protectionDomain.codeSource.location))
|
2021-11-14 11:27:44 +05:30
|
|
|
}
|