1
0
mirror of synced 2026-08-04 01:07:02 +00:00

Compile Kotlin tasks using JVM 1.8

This commit is contained in:
Eleftheria Stein
2020-04-07 10:49:38 -04:00
parent b6fb063145
commit 6017510fdd
+7 -5
View File
@@ -1,3 +1,5 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
apply plugin: 'io.spring.convention.spring-module'
apply plugin: 'trang'
apply plugin: 'kotlin'
@@ -85,11 +87,11 @@ rncToXsd {
xslFile = new File(rncDir, 'spring-security.xsl')
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = ["-Xjsr305=strict"]
}
tasks.withType(KotlinCompile).configureEach {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = ["-Xjsr305=strict"]
}
}
build.dependsOn rncToXsd