-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
70 lines (60 loc) · 2.43 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
var ktorVersion: String = "1.4.0"
plugins {
kotlin("multiplatform") version "1.4.0"
kotlin("plugin.serialization") version "1.4.0"
`java-library`
`maven-publish`
}
repositories {
maven { url = uri("https://dl.bintray.com/kotlin/ktor") }
mavenCentral()
jcenter()
}
group = "com.eiknat"
version = "0.0.1"
@Suppress("UNUSED_VARIABLE")
kotlin {
jvm {} // required because MPP does not see that we're targeting a platform (since it's multiple platforms)
sourceSets {
all {
languageSettings.useExperimentalAnnotation("io.ktor.util.KtorExperimentalAPI")
languageSettings.useExperimentalAnnotation("kotlinx.coroutines.ExperimentalCoroutinesApi")
languageSettings.enableLanguageFeature("InlineClasses")
}
val commonMain by getting {
dependencies {
implementation("io.ktor:ktor-client-core:$ktorVersion")
implementation("io.ktor:ktor-client-websockets:$ktorVersion")
implementation("io.ktor:ktor-client-cio:$ktorVersion")
implementation("io.ktor:ktor-client-json:$ktorVersion")
implementation("io.ktor:ktor-client-okhttp:$ktorVersion")
implementation("io.ktor:ktor-locations:$ktorVersion")
implementation("io.ktor:ktor-client-serialization:$ktorVersion")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-core:1.0.0-RC")
implementation("com.soywiz.korlibs.klock:klock:1.7.3")
}
}
val commonTest by getting {
dependencies {
api("io.ktor:ktor-client-mock:$ktorVersion")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.3.7")
implementation(kotlin("test-common"))
implementation(kotlin("test-annotations-common"))
}
}
val jvmMain by getting {
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation("io.ktor:ktor-client-android:$ktorVersion")
implementation("io.ktor:ktor-client-serialization-jvm:$ktorVersion")
}
}
val jvmTest by getting {
dependencies {
implementation(kotlin("test"))
implementation(kotlin("test-junit"))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.3.7")
}
}
}
}