-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
58 lines (51 loc) · 1.23 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
plugins {
kotlin("jvm") version Versions.kotlin
kotlin("plugin.serialization") version Versions.kotlin
id("net.mamoe.mirai-console") version Versions.mirai
}
group = "io.github.gnuf0rce"
version = "1.0.0"
mirai {
configureShadow {
listOf(
"kotlin",
"org/intellij",
"org/jetbrains",
"org/slf4j"
).forEach { prefix ->
exclude { element ->
element.path.startsWith(prefix)
}
}
}
}
repositories {
clear()
mavenLocal()
maven(url = "https://maven.aliyun.com/repository/public")
mavenCentral()
maven(url = "https://maven.aliyun.com/repository/gradle-plugin")
gradlePluginPortal()
}
kotlin {
sourceSets {
all {
languageSettings.optIn("kotlin.RequiresOptIn")
}
}
}
dependencies {
implementation(ktor("client-encoding", Versions.ktor)) {
exclude(group = "io.ktor", module = "ktor-client-core")
}
implementation(ktor("client-serialization", Versions.ktor)) {
exclude(group = "io.ktor", module = "ktor-client-core")
}
// test
testImplementation(kotlin("test", Versions.kotlin))
}
tasks {
test {
useJUnitPlatform()
}
}