-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
113 lines (103 loc) · 2.87 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
plugins {
kotlin("multiplatform") version "1.8.21"
kotlin("plugin.serialization") version "1.8.21"
id("com.vanniktech.maven.publish") version "0.25.3"
id("org.jetbrains.dokka") version "1.8.20"
signing
}
group = "uk.gibby"
version = "0.2.0"
repositories {
mavenCentral()
jcenter()
google()
}
buildscript {
dependencies{
classpath("com.vanniktech:gradle-maven-publish-plugin:0.25.2")
}
}
kotlin {
jvm()
iosX64()
iosArm64()
iosSimulatorArm64()
macosX64()
mingwX64()
linuxX64()
js(IR) {
browser()
}
sourceSets {
val commonMain by getting {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.2")
implementation("io.ktor:ktor-client-websockets:2.2.2")
implementation("io.ktor:ktor-serialization-kotlinx-json:2.2.2")
implementation("io.ktor:ktor-client-core:2.2.2")
implementation("io.ktor:ktor-client-encoding:2.2.2")
}
}
val commonTest by getting {
dependencies {
implementation(kotlin("test"))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.2")
}
}
val jvmMain by getting {
dependencies {
implementation("io.ktor:ktor-client-cio:2.2.2")
}
}
val jvmTest by getting {
dependencies {
implementation(kotlin("test"))
implementation(kotlin("test-junit"))
}
}
val iosX64Main by getting
val iosArm64Main by getting
val iosSimulatorArm64Main by getting
val iosMain by creating {
dependsOn(commonMain)
iosX64Main.dependsOn(this)
iosArm64Main.dependsOn(this)
iosSimulatorArm64Main.dependsOn(this)
dependencies {
implementation("io.ktor:ktor-client-ios:2.2.2")
}
}
val macosX64Main by getting {
dependencies {
implementation("io.ktor:ktor-client-cio:2.2.2")
}
}
val macosX64Test by getting {
}
val mingwX64Main by getting {
dependencies {
implementation("io.ktor:ktor-client-winhttp:2.2.2")
}
}
val mingwX64Test by getting {
}
val linuxX64Main by getting {
dependencies {
implementation("io.ktor:ktor-client-cio:2.2.2")
}
}
val linuxX64Test by getting {
}
val jsMain by getting {
dependencies {
}
}
val jsTest by getting {
dependencies {
}
}
}
}
publishing {
}