Switch to the newer gradle plugin, fix jansi problem, in-process compiling in gradle parts
Switching to in-process to avoid compilation warnings caused by introduced daemon interface changes. Switching to the gradle plugin 1.1.3 causes jansi incompatibility in in-process compilation mode, so disabling jansi usage to avoid it.
This commit is contained in:
@@ -30,6 +30,11 @@ ext.configureJvmProject = { Project project ->
|
|||||||
|
|
||||||
tasks.withType(project.compileKotlin.class) {
|
tasks.withType(project.compileKotlin.class) {
|
||||||
kotlinOptions.jdkHome = JDK_16
|
kotlinOptions.jdkHome = JDK_16
|
||||||
|
doFirst {
|
||||||
|
System.setProperty("kotlin.colors.enabled", "false")
|
||||||
|
// TODO: fix daemon compatibility (if possible) and remove in-process compilation here
|
||||||
|
System.setProperty("kotlin.compiler.execution.strategy", "in-process")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
test {
|
test {
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
ext.kotlin_version = findProperty("deployVersion") ?: "1.1-SNAPSHOT"
|
ext.kotlin_version = findProperty("deployVersion") ?: "1.1-SNAPSHOT"
|
||||||
ext.kotlin_language_version = "1.1"
|
ext.kotlin_language_version = "1.1"
|
||||||
ext.kotlin_gradle_plugin_version = "1.1.2"
|
ext.kotlin_gradle_plugin_version = "1.1.3"
|
||||||
Reference in New Issue
Block a user