Kafkatorio/modules/factorio-events-data-model/build.gradle.kts

63 lines
1.2 KiB
Text
Raw Normal View History

plugins {
id("dev.adamko.factoriowebmap.archetype.base")
kotlin("multiplatform")
}
2021-10-25 23:35:18 +02:00
val projectId: String by project.extra
val buildDir: Directory = layout.buildDirectory.dir(projectId).get()
2021-10-25 23:35:18 +02:00
kotlin {
//<editor-fold desc="Java">
jvm {
compilations.configureEach {
kotlinOptions {
jvmTarget = "11"
}
}
}
sourceSets {
val jvmMain by getting {
dependencies {
api("com.google.protobuf:protobuf-javalite:3.19.1")
api("com.google.protobuf:protobuf-kotlin-lite:3.19.1")
}
}
val jvmTest by getting {
}
2021-11-03 09:48:30 +01:00
}
2021-11-03 09:48:30 +01:00
//</editor-fold>
//<editor-fold desc="JS">
js(IR) {
browser()
}
sourceSets {
val jsMain by getting {
}
val jsTest by getting {
dependencies {
implementation(kotlin("test-js"))
}
}
}
//</editor-fold>
2021-10-31 09:13:41 +01:00
2021-11-03 09:48:30 +01:00
sourceSets.all {
languageSettings.apply {
languageVersion = "1.5"
// enableLanguageFeature("InlineClasses") // language feature name
optIn("kotlin.OptIn")
optIn("kotlin.ExperimentalStdlibApi")
optIn("kotlin.time.ExperimentalTime")
optIn("kotlinx.coroutines.ExperimentalCoroutinesApi")
optIn("kotlin.js.ExperimentalJsExport")
// progressiveMode = true // false by default
}
}
2021-10-31 09:13:41 +01:00
}