Wizard: add common target to FullStackWebApplicationProjectTemplate
This commit is contained in:
+11
@@ -33,6 +33,17 @@ kotlin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
sourceSets {
|
sourceSets {
|
||||||
|
commonMain {
|
||||||
|
dependencies {
|
||||||
|
implementation kotlin('stdlib-common')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
commonTest {
|
||||||
|
dependencies {
|
||||||
|
implementation kotlin('test-common')
|
||||||
|
implementation kotlin('test-annotations-common')
|
||||||
|
}
|
||||||
|
}
|
||||||
jvmMain {
|
jvmMain {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation kotlin('stdlib-jdk8')
|
implementation kotlin('stdlib-jdk8')
|
||||||
|
|||||||
+11
@@ -33,6 +33,17 @@ kotlin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
sourceSets {
|
sourceSets {
|
||||||
|
val commonMain by getting {
|
||||||
|
dependencies {
|
||||||
|
implementation(kotlin("stdlib-common"))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
val commonTest by getting {
|
||||||
|
dependencies {
|
||||||
|
implementation(kotlin("test-common"))
|
||||||
|
implementation(kotlin("test-annotations-common"))
|
||||||
|
}
|
||||||
|
}
|
||||||
val jvmMain by getting {
|
val jvmMain by getting {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(kotlin("stdlib-jdk8"))
|
implementation(kotlin("stdlib-jdk8"))
|
||||||
|
|||||||
+1
@@ -229,6 +229,7 @@ object FullStackWebApplicationProjectTemplate : ProjectTemplate() {
|
|||||||
MultiplatformModule(
|
MultiplatformModule(
|
||||||
"application",
|
"application",
|
||||||
listOf(
|
listOf(
|
||||||
|
ModuleType.common.createDefaultTarget(),
|
||||||
ModuleType.jvm.createDefaultTarget().apply {
|
ModuleType.jvm.createDefaultTarget().apply {
|
||||||
withTemplate(KtorServerTemplate()) {
|
withTemplate(KtorServerTemplate()) {
|
||||||
template.serverEngine withValue KtorServerEngine.Netty
|
template.serverEngine withValue KtorServerEngine.Netty
|
||||||
|
|||||||
Reference in New Issue
Block a user