Skip to content

Commit a6b6141

Browse files
authored
Address Kotlin Gradle Plugin warning (#298)
Migrate from an unsupported usage of Kotlin Gradle Plugin, noted from a build warning: ``` The Kotlin Gradle plugin was loaded multiple times in different subprojects, which is not supported and may break the build. This might happen in subprojects that apply the Kotlin plugins with the Gradle 'plugins { ... }' DSL if they specify explicit versions, even if the versions are equal. Please add the Kotlin plugin to the common parent project or the root project, then remove the versions in the subprojects. If the parent project does not need the plugin, add 'apply false' to the plugin line. See: https://docs.gradle.org/current/userguide/plugins.html#sec:subprojects_plugins_dsl The Kotlin plugin was loaded in the following projects: ':library', ':examples:example-project' ```
1 parent 88dda56 commit a6b6141

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build.gradle.kts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
plugins {
2+
id("com.gabrielfeo.kotlin-jvm-library") apply false
3+
}
4+
15
tasks.register("check") {
2-
dependsOn(gradle.includedBuilds.map { it.task(":check") })
6+
dependsOn(gradle.includedBuilds.map { it.task(":check") })
37
}

0 commit comments

Comments
 (0)