Mon, 04 Jan 2021 15:14:26 +0100
set target JDK to 11, even if compiled with > 11
build.gradle.kts | file | annotate | diff | comparison | revisions |
1.1 --- a/build.gradle.kts Mon Jan 04 12:45:46 2021 +0100 1.2 +++ b/build.gradle.kts Mon Jan 04 15:14:26 2021 +0100 1.3 @@ -19,6 +19,12 @@ 1.4 kotlinOptions.jvmTarget = "11" 1.5 } 1.6 1.7 +// remove after removing all java sources 1.8 +tasks.withType<JavaCompile>().configureEach { 1.9 + sourceCompatibility = "11" 1.10 + targetCompatibility = "11" 1.11 +} 1.12 + 1.13 tasks.war { 1.14 archiveFileName.set("lightpit.war") 1.15 from("src/main/resources")