Wizard: add option to enable Java support for JVM targets

#KT-36179 fixed
This commit is contained in:
Ilya Kirillov
2020-03-10 14:24:20 +03:00
parent 691ee7412a
commit a16cb7b74d
10 changed files with 142 additions and 17 deletions
@@ -0,0 +1,29 @@
plugins {
id 'org.jetbrains.kotlin.multiplatform' version '1.3.70'
}
group = 'testGroupId'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
kotlin {
jvm {
compilations.all {
kotlinOptions.jvmTarget = '1.8'
}
withJava()
}
sourceSets {
jvmMain {
dependencies {
implementation kotlin('stdlib-jdk8')
}
}
jvmTest {
dependencies {
implementation kotlin('test-junit')
}
}
}
}
@@ -0,0 +1,29 @@
plugins {
kotlin("multiplatform") version "1.3.70"
}
group = "testGroupId"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
kotlin {
jvm {
compilations.all {
kotlinOptions.jvmTarget = "1.8"
}
withJava()
}
sourceSets {
val jvmMain by getting {
dependencies {
implementation(kotlin("stdlib-jdk8"))
}
}
val jvmTest by getting {
dependencies {
implementation(kotlin("test-junit"))
}
}
}
}
@@ -0,0 +1 @@
rootProject.name = 'generatedProject'
@@ -0,0 +1 @@
rootProject.name = "generatedProject"
@@ -0,0 +1,12 @@
kotlin:
projectKind: Multiplatform
modules:
- type: multiplatform
name: a
subModules:
- type:
targetJvmVersion: "1.8"
javaSupport: true
name: jvmTarget
testFramework: JUNIT4
name: jvm