2021-05-04 20:31:53 +00:00
|
|
|
plugins {
|
|
|
|
kotlin("multiplatform")
|
2021-10-22 16:56:00 +00:00
|
|
|
id("org.jetbrains.compose") version "1.0.0-beta1"
|
2021-05-04 20:31:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
version = "1.0"
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
|
|
|
|
}
|
|
|
|
|
|
|
|
kotlin {
|
|
|
|
js(IR) {
|
|
|
|
browser()
|
|
|
|
binaries.executable()
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
2021-05-28 16:42:06 +00:00
|
|
|
val jsMain by getting {
|
2021-05-04 20:31:53 +00:00
|
|
|
dependencies {
|
2021-05-28 16:42:06 +00:00
|
|
|
implementation(compose.web.widgets)
|
|
|
|
implementation(compose.web.core)
|
2021-05-04 20:31:53 +00:00
|
|
|
implementation(compose.runtime)
|
|
|
|
|
|
|
|
implementation(project(":common"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-27 22:06:49 +00:00
|
|
|
// workaround for https://youtrack.jetbrains.com/issue/KT-48273
|
|
|
|
afterEvaluate {
|
|
|
|
rootProject.extensions.configure<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension> {
|
|
|
|
versions.webpackDevServer.version = "4.0.0"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-04 20:31:53 +00:00
|
|
|
compose.desktop {
|
|
|
|
application {
|
|
|
|
mainClass = ""
|
|
|
|
}
|
2021-06-20 09:32:24 +00:00
|
|
|
}
|