From 20df5d5940fa6d33bbbe4e8d758f5c6c71fb0da9 Mon Sep 17 00:00:00 2001 From: Guillermo Mazzola Date: Wed, 20 Dec 2023 03:41:37 +0100 Subject: [PATCH] Changed plugin id to `io.github.gmazzo.codeowners.kotlin` --- README.md => README-kotlin.md | 6 +++--- demo-project/app/build.gradle.kts | 2 +- demo-project/build.gradle.kts | 2 +- demo-project/lib1/build.gradle.kts | 2 +- demo-project/lib2/build.gradle.kts | 2 +- demo-project/utils/build.gradle.kts | 2 +- plugin/kotlin-plugin/build.gradle.kts | 4 ++-- .../{CodeOwnersPlugin.kt => CodeOwnersKotlinPlugin.kt} | 2 +- ...odeOwnersPluginTest.kt => CodeOwnersKotlinPluginTest.kt} | 4 ++-- 9 files changed, 13 insertions(+), 13 deletions(-) rename README.md => README-kotlin.md (97%) rename plugin/kotlin-plugin/src/main/kotlin/io/github/gmazzo/codeowners/{CodeOwnersPlugin.kt => CodeOwnersKotlinPlugin.kt} (99%) rename plugin/kotlin-plugin/src/test/kotlin/io/github/gmazzo/codeowners/{CodeOwnersPluginTest.kt => CodeOwnersKotlinPluginTest.kt} (98%) diff --git a/README.md b/README-kotlin.md similarity index 97% rename from README.md rename to README-kotlin.md index 4797fc4..a98f16f 100644 --- a/README.md +++ b/README-kotlin.md @@ -13,11 +13,11 @@ This plugin is designed to work as a whole build plugin, but you can selectively The simplest setup is to apply the plugin at the root project, and then to each submodule. At root `build.gradle.kts` add: ```kotlin plugins { - id("io.github.gmazzo.codeowners") version "" + id("io.github.gmazzo.codeowners.kotlin") version "" } subprojects { - apply(plugin = "io.github.gmazzo.codeowners") + apply(plugin = "io.github.gmazzo.codeowners.kotlin") } ``` @@ -56,7 +56,7 @@ try { At root's `build.gradle.kts` add: ```kotlin plugins { - id("io.github.gmazzo.codeowners") version "" + id("io.github.gmazzo.codeowners.kotlin") version "" } subprojects { diff --git a/demo-project/app/build.gradle.kts b/demo-project/app/build.gradle.kts index 9697459..1b33cad 100644 --- a/demo-project/app/build.gradle.kts +++ b/demo-project/app/build.gradle.kts @@ -1,7 +1,7 @@ plugins { alias(libs.plugins.android.application) alias(libs.plugins.kotlin.multiplatform) - id("io.github.gmazzo.codeowners") + id("io.github.gmazzo.codeowners.kotlin") } kotlin { diff --git a/demo-project/build.gradle.kts b/demo-project/build.gradle.kts index eb52c9f..81e3462 100644 --- a/demo-project/build.gradle.kts +++ b/demo-project/build.gradle.kts @@ -4,5 +4,5 @@ plugins { alias(libs.plugins.kotlin.android) apply false alias(libs.plugins.kotlin.jvm) apply false alias(libs.plugins.kotlin.multiplatform) apply false - id("io.github.gmazzo.codeowners") + id("io.github.gmazzo.codeowners.kotlin") } diff --git a/demo-project/lib1/build.gradle.kts b/demo-project/lib1/build.gradle.kts index 7f04645..102d563 100644 --- a/demo-project/lib1/build.gradle.kts +++ b/demo-project/lib1/build.gradle.kts @@ -1,6 +1,6 @@ plugins { alias(libs.plugins.kotlin.jvm) - id("io.github.gmazzo.codeowners") + id("io.github.gmazzo.codeowners.kotlin") } kotlin { diff --git a/demo-project/lib2/build.gradle.kts b/demo-project/lib2/build.gradle.kts index bac34e4..69816db 100644 --- a/demo-project/lib2/build.gradle.kts +++ b/demo-project/lib2/build.gradle.kts @@ -1,7 +1,7 @@ plugins { alias(libs.plugins.android.library) alias(libs.plugins.kotlin.android) - id("io.github.gmazzo.codeowners") + id("io.github.gmazzo.codeowners.kotlin") } android { diff --git a/demo-project/utils/build.gradle.kts b/demo-project/utils/build.gradle.kts index 5a7a527..2fecc4c 100644 --- a/demo-project/utils/build.gradle.kts +++ b/demo-project/utils/build.gradle.kts @@ -1,6 +1,6 @@ plugins { alias(libs.plugins.kotlin.jvm) - id("io.github.gmazzo.codeowners") + id("io.github.gmazzo.codeowners.kotlin") } dependencies { diff --git a/plugin/kotlin-plugin/build.gradle.kts b/plugin/kotlin-plugin/build.gradle.kts index 8c16f04..018d969 100644 --- a/plugin/kotlin-plugin/build.gradle.kts +++ b/plugin/kotlin-plugin/build.gradle.kts @@ -55,9 +55,9 @@ gradlePlugin { vcsUrl.set("https://github.com/gmazzo/gradle-codeowners-plugin") plugins.create("codeOwners") { - id = "io.github.gmazzo.codeowners" + id = "io.github.gmazzo.codeowners.kotlin" displayName = name - implementationClass = "io.github.gmazzo.codeowners.CodeOwnersPlugin" + implementationClass = "io.github.gmazzo.codeowners.CodeOwnersKotlinPlugin" description = "A Gradle plugin to propagate CODEOWNERS to JVM classes" tags.addAll("codeowners", "ownership", "attribution") } diff --git a/plugin/kotlin-plugin/src/main/kotlin/io/github/gmazzo/codeowners/CodeOwnersPlugin.kt b/plugin/kotlin-plugin/src/main/kotlin/io/github/gmazzo/codeowners/CodeOwnersKotlinPlugin.kt similarity index 99% rename from plugin/kotlin-plugin/src/main/kotlin/io/github/gmazzo/codeowners/CodeOwnersPlugin.kt rename to plugin/kotlin-plugin/src/main/kotlin/io/github/gmazzo/codeowners/CodeOwnersKotlinPlugin.kt index 3ca9621..abc30d5 100644 --- a/plugin/kotlin-plugin/src/main/kotlin/io/github/gmazzo/codeowners/CodeOwnersPlugin.kt +++ b/plugin/kotlin-plugin/src/main/kotlin/io/github/gmazzo/codeowners/CodeOwnersKotlinPlugin.kt @@ -25,7 +25,7 @@ import org.jetbrains.kotlin.gradle.plugin.KotlinTargetsContainer import org.jetbrains.kotlin.gradle.plugin.SubpluginArtifact import org.jetbrains.kotlin.gradle.plugin.SubpluginOption -class CodeOwnersPlugin : KotlinCompilerPluginSupportPlugin { +class CodeOwnersKotlinPlugin : KotlinCompilerPluginSupportPlugin { override fun isApplicable(kotlinCompilation: KotlinCompilation<*>) = true diff --git a/plugin/kotlin-plugin/src/test/kotlin/io/github/gmazzo/codeowners/CodeOwnersPluginTest.kt b/plugin/kotlin-plugin/src/test/kotlin/io/github/gmazzo/codeowners/CodeOwnersKotlinPluginTest.kt similarity index 98% rename from plugin/kotlin-plugin/src/test/kotlin/io/github/gmazzo/codeowners/CodeOwnersPluginTest.kt rename to plugin/kotlin-plugin/src/test/kotlin/io/github/gmazzo/codeowners/CodeOwnersKotlinPluginTest.kt index 859459b..bc7b6fb 100644 --- a/plugin/kotlin-plugin/src/test/kotlin/io/github/gmazzo/codeowners/CodeOwnersPluginTest.kt +++ b/plugin/kotlin-plugin/src/test/kotlin/io/github/gmazzo/codeowners/CodeOwnersKotlinPluginTest.kt @@ -11,7 +11,7 @@ import java.io.File import kotlin.test.assertEquals @TestInstance(TestInstance.Lifecycle.PER_CLASS) -class CodeOwnersPluginTest { +class CodeOwnersKotlinPluginTest { private val root = ProjectBuilder.builder() .withName("root") @@ -47,7 +47,7 @@ class CodeOwnersPluginTest { root.allprojects { apply(plugin = "java") - apply() + apply() repositories.mavenCentral() configurations.configureEach {