Use default compileJava9Java task to build java9 source set

This commit is contained in:
Ilya Gorbunov
2018-04-02 14:16:53 +03:00
committed by Alexander Udalov
parent bd4abaa8bf
commit 299d6fa772
7 changed files with 46 additions and 51 deletions
+4 -4
View File
@@ -28,16 +28,14 @@ sourceSets {
}
java9 {
java {
srcDirs = ['java9']
srcDir 'java9'
}
}
}
createCompileJava9Task(project, "compileJava9", "kotlin.stdlib.jdk7")
jar {
manifestAttributes(manifest, project, 'Main', true)
from compileJava9.outputs
from sourceSets.java9.output
}
artifacts {
@@ -68,6 +66,8 @@ compileTestKotlin {
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package"]
}
compileJava9Sources(project, 'kotlin.stdlib.jdk7')
kotlin.experimental.coroutines 'enable'
test {