<@U90R21AD8> The `plugins {}` block should only be...
# gradle
e
@Gizmo The
plugins {}
block should only be at the root scope of the script. Under
allprojects {}
it is ignored. It should fail though, see https://github.com/gradle/kotlin-dsl/issues/625 You should do this instead:
Copy code
allprojects {
    apply { plugin("java") }
    // ...
}
Another thing is that when doing configuration injection (
allprojects {}
,
subprojects {}
or
project(":path") {}
), you can’t use the static extensions to refer to configuration names, you have to rely on strings:
Copy code
allprojects {
    apply { plugin("java") }
    dependencies {
        "compile"("g:a:v")
    }
}