Wizard: add jvm target setting for JVM configurations

#KT-36180 fixed
This commit is contained in:
Ilya Kirillov
2020-02-10 22:43:52 +03:00
parent fabb0584da
commit fa4d790f5a
26 changed files with 202 additions and 59 deletions
@@ -8,7 +8,11 @@ repositories {
mavenCentral()
}
kotlin {
jvm()
jvm {
compilations.all {
kotlinOptions.jvmTarget = '1.8'
}
}
sourceSets {
jvmMain {
dependencies {
@@ -8,7 +8,11 @@ repositories {
mavenCentral()
}
kotlin {
jvm()
jvm {
compilations.all {
kotlinOptions.jvmTarget = "1.8"
}
}
sourceSets {
val jvmMain by getting {
dependencies {
@@ -6,6 +6,7 @@ kotlin:
name: a
subModules:
- type:
targetJvmVersion: "1.8"
name: jvmTarget
testFramework: JUNIT4
kind: target
@@ -1,3 +1,5 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.3.61'
}
@@ -10,4 +12,7 @@ repositories {
dependencies {
testImplementation 'org.jetbrains.kotlin:kotlin-test-junit'
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
}
tasks.withType(KotlinCompile) {
kotlinOptions.jvmTarget = '1.6'
}
@@ -1,3 +1,5 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.3.61"
}
@@ -10,4 +12,7 @@ repositories {
dependencies {
testImplementation(kotlin("test-junit"))
implementation(kotlin("stdlib-jdk8"))
}
tasks.withType<KotlinCompile>() {
kotlinOptions.jvmTarget = "1.6"
}
@@ -14,6 +14,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<kotlin.code.style>official</kotlin.code.style>
<kotlin.compiler.jvmTarget>1.6</kotlin.compiler.jvmTarget>
</properties>
<repositories>
@@ -2,6 +2,7 @@ kotlin:
projectKind: Singleplatform
modules:
- type:
targetJvmVersion: "1.6"
name: JVM Module
testFramework: JUNIT4
name: nya
@@ -8,7 +8,11 @@ repositories {
mavenCentral()
}
kotlin {
jvm()
jvm {
compilations.all {
kotlinOptions.jvmTarget = '9'
}
}
js('a') {
browser {
@@ -8,7 +8,11 @@ repositories {
mavenCentral()
}
kotlin {
jvm()
jvm {
compilations.all {
kotlinOptions.jvmTarget = "9"
}
}
js("a") {
browser {
@@ -6,6 +6,7 @@ kotlin:
name: a
subModules:
- type:
targetJvmVersion: "9"
name: jvmTarget
testFramework: JUNIT4
kind: target
@@ -14,8 +15,8 @@ kotlin:
- type: main
- type: test
- type:
name: jsBrowser
testFramework: JS
name: jsBrowser
testFramework: JS
kind: target
name: a
sourcesets: