PeopleInSpace/compose-web/build.gradle.kts

43 lines
917 B
Text
Raw Normal View History

2021-05-04 20:31:53 +00:00
plugins {
kotlin("multiplatform")
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"))
}
}
}
}
// 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
}