From 81b476090796d88181e13d8ea24efa1c78f60dd8 Mon Sep 17 00:00:00 2001 From: Nikita Bobko Date: Mon, 24 Jan 2022 19:59:52 +0100 Subject: [PATCH] Kotlin JPS plugin: set JVM bytecode target to 1.8 ^KTIJ-20854 Fixed --- jps/jps-plugin/build.gradle.kts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/jps/jps-plugin/build.gradle.kts b/jps/jps-plugin/build.gradle.kts index 3d1e382d781..7f9473809a5 100644 --- a/jps/jps-plugin/build.gradle.kts +++ b/jps/jps-plugin/build.gradle.kts @@ -97,6 +97,17 @@ java { } } +tasks.compileJava { + sourceCompatibility = "1.8" + targetCompatibility = "1.8" +} + +tasks.compileKotlin { + kotlinOptions.jvmTarget = "1.8" + sourceCompatibility = "1.8" + targetCompatibility = "1.8" +} + projectTest(parallel = true) { // do not replace with compile/runtime dependency, // because it forces Intellij reindexing after each compiler change