Skip to content

Commit

Permalink
Changed plugin id to io.github.gmazzo.codeowners.kotlin
Browse files Browse the repository at this point in the history
  • Loading branch information
gmazzo committed Dec 20, 2023
1 parent 2c762a8 commit 20df5d5
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions README.md → README-kotlin.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 "<latest>"
id("io.github.gmazzo.codeowners.kotlin") version "<latest>"
}

subprojects {
apply(plugin = "io.github.gmazzo.codeowners")
apply(plugin = "io.github.gmazzo.codeowners.kotlin")
}
```

Expand Down Expand Up @@ -56,7 +56,7 @@ try {
At root's `build.gradle.kts` add:
```kotlin
plugins {
id("io.github.gmazzo.codeowners") version "<latest>"
id("io.github.gmazzo.codeowners.kotlin") version "<latest>"
}

subprojects {
Expand Down
2 changes: 1 addition & 1 deletion demo-project/app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion demo-project/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
2 changes: 1 addition & 1 deletion demo-project/lib1/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
alias(libs.plugins.kotlin.jvm)
id("io.github.gmazzo.codeowners")
id("io.github.gmazzo.codeowners.kotlin")
}

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion demo-project/lib2/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion demo-project/utils/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
alias(libs.plugins.kotlin.jvm)
id("io.github.gmazzo.codeowners")
id("io.github.gmazzo.codeowners.kotlin")
}

dependencies {
Expand Down
4 changes: 2 additions & 2 deletions plugin/kotlin-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -47,7 +47,7 @@ class CodeOwnersPluginTest {

root.allprojects {
apply(plugin = "java")
apply<CodeOwnersPlugin>()
apply<CodeOwnersKotlinPlugin>()

repositories.mavenCentral()
configurations.configureEach {
Expand Down

0 comments on commit 20df5d5

Please sign in to comment.