Melodeiro
11/18/2018, 12:18 AMeskatos
11/18/2018, 10:02 AMtasks.run
is a TaskProvider
you could write:
kotlin
tasks.run.get().workingDir("some/path")
but it would save a bit of configuration time to lazily apply this configuration as follows:
kotlin
(tasks.run) {
workingDir("some/path")
}
Parentheses around tasks.run
are required because tasks.run {}
conflicts with Kotlin stdlib .run {}
extension.Melodeiro
11/18/2018, 11:00 AMtasks.getByName<JavaExec>("run")
eskatos
11/19/2018, 7:58 AM