-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
79 lines (73 loc) · 2.04 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
plugins {
kotlin("multiplatform") version Deps.Versions.kotlinVersion
kotlin("plugin.serialization") version Deps.Versions.kotlinVersion
id("io.gitlab.arturbosch.detekt") version Deps.Versions.detektVersion
id("com.github.ben-manes.versions") version Deps.Versions.benManes
}
group = "io.github.dragneelfps"
version = Ci.version
repositories {
mavenCentral()
}
kotlin {
jvm {
compilations.all {
kotlinOptions.jvmTarget = "1.8"
}
}
macosX64()
linuxX64()
mingwX64()
@Suppress("UNUSED_VARIABLE")
sourceSets {
val commonMain by getting {
dependencies {
implementation(Deps.KtorClient.core)
implementation(Deps.KtorClient.logging)
implementation(Deps.KtorClient.serialization)
implementation(Deps.kSerialization)
implementation(Deps.kDateTime)
}
}
val jvmMain by getting {
dependencies {
implementation(Deps.KtorClient.apache)
implementation(Deps.KtorClient.loggingJvm)
implementation(Deps.KtorClient.serializationJvm)
implementation(Deps.logback)
implementation(Deps.Coroutines.core)
}
}
// Native START
val nativeMain by creating {
dependencies {
implementation(Deps.KtorClient.curl)
implementation(Deps.Coroutines.coreNative)
}
}
val macosX64Main by getting {
dependencies {
dependsOn(nativeMain)
}
}
val linuxX64Main by getting {
dependencies {
dependsOn(nativeMain)
}
}
val mingwX64Main by getting {
dependencies {
dependsOn(nativeMain)
}
}
// Native END
}
}
detekt {
reports {
html.enabled = true
xml.enabled = true
}
}
apply(plugin = "dokka-config")
apply(plugin = "publish-config")