Wizard: add common target to FullStackWebApplicationProjectTemplate
This commit is contained in:
+11
@@ -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')
|
||||
|
||||
+11
@@ -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"))
|
||||
|
||||
+1
@@ -229,6 +229,7 @@ object FullStackWebApplicationProjectTemplate : ProjectTemplate() {
|
||||
MultiplatformModule(
|
||||
"application",
|
||||
listOf(
|
||||
ModuleType.common.createDefaultTarget(),
|
||||
ModuleType.jvm.createDefaultTarget().apply {
|
||||
withTemplate(KtorServerTemplate()) {
|
||||
template.serverEngine withValue KtorServerEngine.Netty
|
||||
|
||||
Reference in New Issue
Block a user