aboutsummaryrefslogtreecommitdiff
path: root/build-logic/kotlin-plugins/build.gradle.kts
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2022-06-05 03:56:37 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2022-06-05 03:58:16 +0530
commit98f49e7b69dad95e973260743e4579d426a17b4a (patch)
treea3d48bb865bf4f6eaef41e9158ff64a76c07767a /build-logic/kotlin-plugins/build.gradle.kts
parentfe3ca3f7d82436f2eaf1e6212ea278466dc85402 (diff)
kotlin-plugins: convert to full plugins
Diffstat (limited to 'build-logic/kotlin-plugins/build.gradle.kts')
-rw-r--r--build-logic/kotlin-plugins/build.gradle.kts31
1 files changed, 30 insertions, 1 deletions
diff --git a/build-logic/kotlin-plugins/build.gradle.kts b/build-logic/kotlin-plugins/build.gradle.kts
index 3984c2a6..71230f52 100644
--- a/build-logic/kotlin-plugins/build.gradle.kts
+++ b/build-logic/kotlin-plugins/build.gradle.kts
@@ -24,6 +24,35 @@ afterEvaluate {
}
}
+gradlePlugin {
+ plugins {
+ register("binary-compatibility") {
+ id = "com.github.android-password-store.binary-compatibility"
+ implementationClass = "dev.msfjarvis.aps.gradle.BinaryCompatibilityPlugin"
+ }
+ register("kotlin-android") {
+ id = "com.github.android-password-store.kotlin-android"
+ implementationClass = "dev.msfjarvis.aps.gradle.KotlinAndroidPlugin"
+ }
+ register("kotlin-common") {
+ id = "com.github.android-password-store.kotlin-common"
+ implementationClass = "dev.msfjarvis.aps.gradle.KotlinCommonPlugin"
+ }
+ register("kotlin-kapt") {
+ id = "com.github.android-password-store.kotlin-kapt"
+ implementationClass = "dev.msfjarvis.aps.gradle.KotlinKaptPlugin"
+ }
+ register("kotlin-library") {
+ id = "com.github.android-password-store.kotlin-library"
+ implementationClass = "dev.msfjarvis.aps.gradle.KotlinLibraryPlugin"
+ }
+ register("spotless") {
+ id = "com.github.android-password-store.spotless"
+ implementationClass = "dev.msfjarvis.aps.gradle.SpotlessPlugin"
+ }
+ }
+}
+
dependencies {
implementation(libs.build.agp)
implementation(libs.build.binarycompat)
@@ -38,7 +67,7 @@ configurations.all {
val overridenVersion = System.getenv(overrideName)
if (!overridenVersion.isNullOrEmpty()) {
project.logger.lifecycle(
- "Overriding dependency ${requested.group}:${requested.name} to version ${overridenVersion}"
+ "Overriding dependency ${requested.group}:${requested.name} to version $overridenVersion"
)
useVersion(overridenVersion)
}