What is the equivalent to sourceSets.main.runtimeClasspath in the Kotlin DSL?
g
gildor
07/13/2018, 3:20 AM
sourceSets["main"].runtimeClasspath
gildor
07/13/2018, 3:22 AM
Rule of thumb: if original property extends
NamedDomainObject*
interface it means that all values there are dynamic, it’s like a map
👍 2
gildor
07/13/2018, 3:24 AM
And also support this syntax, to define new values:
Copy code
sourceSets { // ovrloaded .invoke() operator
"someNewElement" { // ovrloaded .invoke for string
// `this` has type of NamedDomain container
//so you can define this item in a type safe way
}
}