What is the equivalent to sourceSets.main.runtimeC...
# gradle
n
What is the equivalent to sourceSets.main.runtimeClasspath in the Kotlin DSL?
g
sourceSets["main"].runtimeClasspath
Rule of thumb: if original property extends
NamedDomainObject*
interface it means that all values there are dynamic, it’s like a map
👍 2
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 
     }
}