Czar
12/07/2017, 11:44 AMproject(":child:grandchild") {
plugins {
id("war")
id("org.springframework.boot")
}
dependencies {
providedRuntime("org.springframework.boot:spring-boot-starter-tomcat")
//...
}
//...
}
gives me unresolved reference: providedRuntime
Any ideas?"providedRuntime"("org.springframework.boot:spring-boot-starter-tomcat")
gradle says Configuration with name 'providedRuntime' not found.
Why? I did apply the pluginseskatos
12/07/2017, 2:27 PMplugins {}
block is only supported for the current project, not when doing config injection with [all|sub]projects {}
or project(":path") {}
The bug here is that you couldn’t notice, it should have failed telling you this is not possible.project(":path") { apply { plugin("some-id") } }
gradle/kotlin-dsl
about not failing when the plugins {}
block is used in a project configuration block?Czar
12/07/2017, 2:39 PMapply{ plugin("") }
and "providedRuntime"()
it worksprovidedRuntime
accessor here? So that I can omit the quotes?eskatos
12/07/2017, 2:47 PMCzar
12/07/2017, 2:48 PM