Hi guys
I try to receive feedback about using Kotlin to write Gradle scripts in Gradle 3.0.
I used this sample script and named it build.gradle.kts. However it seems that Gradle
doesn’t see it. Whenever I launch “gradle compile” or “gradle clean” commands it produces errors about unrecognized tasks.
apply()
configure {
mainClassName = “samples.HelloWorld”
}
configure {
setSourceCompatibility(1.7)
setTargetCompatibility(1.7)
}
repositories {
jcenter()
}
dependencies {
testCompile(“junit:junit:4.12”)
}