If I am not mistaken both of the following snippet...
# gradle
e
If I am not mistaken both of the following snippets work and do the same. Which one would you prefer and why? This style is included in the kotlin docs ( at https://kotlinlang.org/docs/reference/using-gradle.html ):
Copy code
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions.jvmTarget = "1.8"
This is similar to my groovy dsl builds:
Copy code
tasks {
	compileKotlin {
		kotlinOptions {
			jvmTarget = "1.8"
		}
	}
}