https://kotlinlang.org logo
e

eekboom

11/14/2019, 10:13 PM
I assume that
Copy code
tasks.compileKotlin {
	kotlinOptions.jvmTarget = "1.8"
}
is the same as
Copy code
tasks.compileKotlin.configure {
	kotlinOptions.jvmTarget = "1.8"
}
Can somebody explain to me how this magic works?
compileKotlin
is a property of type
TaskProvider<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>
which is an interface with two abstract methods, so it can't be SAM, right?
s

Stephan Schroeder

11/15/2019, 10:57 AM
there is a #gradle channel
5 Views