-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
81 lines (74 loc) · 1.96 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
plugins {
kotlin("multiplatform") version "1.3.72"
id("maven-publish")
}
repositories {
mavenCentral()
}
group = "io.aktor"
version = "Master-SNAPSHOT"
buildscript {
repositories {
maven("https://plugins.gradle.org/m2/")
}
dependencies {
classpath("org.jlleitschuh.gradle:ktlint-gradle:9.3.0")
}
}
apply(plugin = "org.jlleitschuh.gradle.ktlint")
repositories {
jcenter()
}
kotlin {
jvm()
js {
/*
nodejs {
}
browser {
testTask {
useMocha {
timeout = "5000" // mochaTimeout here as string
}
}
}
*/
}
sourceSets {
val commonMain by getting {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core-common:1.3.8")
implementation("org.jetbrains.kotlinx:atomicfu-common:0.14.2")
}
}
val commonTest by getting {
dependencies {
implementation(kotlin("test-common"))
implementation(kotlin("test-annotations-common"))
}
}
val jvmMain by getting {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.3.8")
implementation("org.jetbrains.kotlinx:atomicfu:0.14.2")
}
}
val jvmTest by getting {
dependencies {
implementation(kotlin("test-junit"))
implementation("org.awaitility:awaitility-kotlin:3.1.3")
}
}
val jsMain by getting {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core-js:1.3.8")
implementation("org.jetbrains.kotlinx:atomicfu-js:0.14.2")
}
}
val jsTest by getting {
dependencies {
implementation(kotlin("test-js"))
}
}
}
}