Skip to content

Commit 2851e16

Browse files
committed
Remove "no valid plugin descriptors were found" build-time warning
1 parent ada6cc4 commit 2851e16

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

buildSrc/build.gradle.kts

+4-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import com.github.vlsi.gradle.properties.dsl.props
1919
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2020

2121
plugins {
22-
java
22+
`embedded-kotlin`
2323
`kotlin-dsl` apply false
2424
id("com.github.autostyle")
2525
id("com.github.vlsi.gradle-extensions")
@@ -41,7 +41,9 @@ allprojects {
4141
}
4242

4343
fun Project.applyKotlinProjectConventions() {
44-
apply(plugin = "org.gradle.kotlin.kotlin-dsl")
44+
if (project != rootProject) {
45+
apply(plugin = "org.gradle.kotlin.kotlin-dsl")
46+
}
4547

4648
plugins.withType<KotlinDslPlugin> {
4749
configure<KotlinDslPluginOptions> {

0 commit comments

Comments
 (0)