Switching library projects to java 8 compilation with exceptions for stdlib/runtime/reflect/test
This commit is contained in:
@@ -15,6 +15,33 @@ String jdkPath(String version) {
|
||||
//}
|
||||
|
||||
ext.configureJvmProject = { Project project ->
|
||||
project.configure(project) {
|
||||
task sourcesJar(type: Jar, dependsOn: classes) {
|
||||
classifier = 'sources'
|
||||
from sourceSets.main.kotlin
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile) {
|
||||
// sourceCompatibility = 1.6
|
||||
// targetCompatibility = 1.6
|
||||
options.fork = true
|
||||
options.forkOptions.javaHome = file(JDK_18)
|
||||
}
|
||||
|
||||
tasks.withType(project.compileKotlin.class) {
|
||||
kotlinOptions.jdkHome = JDK_18
|
||||
doFirst {
|
||||
System.setProperty("kotlin.colors.enabled", "false")
|
||||
}
|
||||
}
|
||||
|
||||
test {
|
||||
executable = "$JDK_16/bin/java"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ext.configureJvm6Project = { Project project ->
|
||||
project.configure(project) {
|
||||
task sourcesJar(type: Jar, dependsOn: classes) {
|
||||
classifier = 'sources'
|
||||
|
||||
Reference in New Issue
Block a user