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?eskatos
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.eskatos
12/07/2017, 2:28 PMproject(":path") { apply { plugin("some-id") } }
eskatos
12/07/2017, 2:29 PMgradle/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 worksCzar
12/07/2017, 2:45 PMCzar
12/07/2017, 2:47 PMprovidedRuntime
accessor here? So that I can omit the quotes?eskatos
12/07/2017, 2:47 PMeskatos
12/07/2017, 2:47 PMCzar
12/07/2017, 2:48 PM