Wizard: add common target to FullStackWebApplicationProjectTemplate

This commit is contained in:
Ilya Kirillov
2020-04-24 21:31:48 +03:00
parent 78b5be94e9
commit 1a68e40ebd
3 changed files with 23 additions and 0 deletions
@@ -33,6 +33,17 @@ kotlin {
}
}
sourceSets {
commonMain {
dependencies {
implementation kotlin('stdlib-common')
}
}
commonTest {
dependencies {
implementation kotlin('test-common')
implementation kotlin('test-annotations-common')
}
}
jvmMain {
dependencies {
implementation kotlin('stdlib-jdk8')
@@ -33,6 +33,17 @@ kotlin {
}
}
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 {
dependencies {
implementation(kotlin("stdlib-jdk8"))
@@ -229,6 +229,7 @@ object FullStackWebApplicationProjectTemplate : ProjectTemplate() {
MultiplatformModule(
"application",
listOf(
ModuleType.common.createDefaultTarget(),
ModuleType.jvm.createDefaultTarget().apply {
withTemplate(KtorServerTemplate()) {
template.serverEngine withValue KtorServerEngine.Netty