forked from terrakok/kmp-web-wizard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
56 lines (52 loc) · 1.41 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
plugins {
kotlin("multiplatform") version "1.8.10"
id("org.jetbrains.compose") version "1.4.0-alpha01-dev980"
}
repositories {
mavenCentral()
google()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
kotlin {
jvm() //for common tests
js(IR) {
browser {
testTask {
enabled = false
}
}
binaries.executable()
}
sourceSets {
val commonMain by getting {
dependencies {
implementation(compose.runtime)
}
}
val commonTest by getting {
dependencies {
implementation(kotlin("test"))
}
}
val jvmMain by getting {
dependencies {
implementation("org.apache.commons:commons-compress:1.2")
}
}
val jsMain by getting {
dependencies {
implementation(compose.web.core)
implementation(npm("highlight.js", "11.7.0"))
implementation(npm("file-saver", "2.0.5"))
implementation(npm("jszip", "3.10.1"))
implementation(npm("stream", "0.0.2"))
}
}
}
}
task<Copy>("fixMissingResources") {
dependsOn("jvmProcessResources")
tasks.findByPath("jvmTest")?.dependsOn(this)
from("$buildDir/processedResources/jvm/main")
into("$buildDir/resources/")
}