visionforge/visionforge-server/build.gradle.kts

63 lines
1.5 KiB
Plaintext
Raw Normal View History

//import org.jetbrains.kotlin.gradle.plugin.KotlinCompilation.Companion.MAIN_COMPILATION_NAME
2020-10-31 10:04:23 +03:00
plugins {
id("ru.mipt.npm.mpp")
// application
2020-10-31 10:04:23 +03:00
}
val ktorVersion: String by rootProject.extra
//kscience {
// application()
//}
2020-10-31 10:04:23 +03:00
kotlin {
// afterEvaluate {
// val jsBrowserDistribution by tasks.getting
//
// jvm {
// withJava()
// compilations[MAIN_COMPILATION_NAME]?.apply {
// tasks.getByName<ProcessResources>(processResourcesTaskName) {
// dependsOn(jsBrowserDistribution)
// afterEvaluate {
// from(jsBrowserDistribution)
// }
// }
// }
//
// }
// }
2020-10-31 10:04:23 +03:00
sourceSets {
commonMain {
dependencies {
implementation(project(":visionforge-core"))
2020-10-31 10:04:23 +03:00
}
}
jvmMain {
dependencies {
implementation("io.ktor:ktor-server-cio:$ktorVersion")
implementation("io.ktor:ktor-serialization:$ktorVersion")
}
}
jsMain {
dependencies {
implementation("io.ktor:ktor-client-js:$ktorVersion")
implementation("io.ktor:ktor-client-serialization-js:$ktorVersion")
}
}
}
}
//distributions {
// main {
// contents {
// from("$buildDir/libs") {
// rename("${rootProject.name}-jvm", rootProject.name)
// into("lib")
// }
// }
// }
//}