Remove some configuration duplication by using 'tasks.withType()'

Setup common options of java and kotlin compiler tasks.
This commit is contained in:
Ilya Gorbunov
2017-03-20 20:00:38 +03:00
parent d25b07fe23
commit 846b74885c
7 changed files with 23 additions and 36 deletions
-8
View File
@@ -35,16 +35,8 @@ artifacts {
archives javadocJar
}
compileJava {
sourceCompatibility = 1.6
targetCompatibility = 1.6
options.fork = true
options.forkOptions.executable = "${JDK_16}/bin/javac"
}
compileKotlin {
kotlinOptions {
jdkHome = JDK_16
freeCompilerArgs = [
"-Xallow-kotlin-package",
"-Xdump-declarations-to", "${buildDir}/runtime-declarations.json",