forked from cssxsh/weibo-helper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
72 lines (64 loc) · 2.12 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
plugins {
kotlin("jvm") version Versions.kotlin
kotlin("plugin.serialization") version Versions.kotlin
id("net.mamoe.mirai-console") version Versions.mirai
}
group = "xyz.cssxsh.mirai.plugin"
version = "1.1.4"
repositories {
clear()
mavenLocal()
maven(url = "https://maven.aliyun.com/repository/public")
mavenCentral()
jcenter()
maven(url = "https://maven.aliyun.com/repository/gradle-plugin")
gradlePluginPortal()
}
kotlin {
sourceSets {
all {
// languageSettings.useExperimentalAnnotation("kotlin.RequiresOptIn")
// languageSettings.useExperimentalAnnotation("kotlin.ExperimentalStdlibApi")
// languageSettings.useExperimentalAnnotation("io.ktor.util.KtorExperimentalAPI")
// languageSettings.useExperimentalAnnotation("kotlinx.serialization.ExperimentalSerializationApi")
// languageSettings.useExperimentalAnnotation("kotlinx.serialization.InternalSerializationApi")
// languageSettings.useExperimentalAnnotation("net.mamoe.mirai.console.util.ConsoleExperimentalApi")
}
test {
// languageSettings.useExperimentalAnnotation("net.mamoe.mirai.console.ConsoleFrontEndImplementation")
}
}
}
dependencies {
// implementation(ktor("client-serialization", Versions.ktor))
implementation(ktor("client-encoding", Versions.ktor)) {
exclude(group = "io.ktor", module = "ktor-client-core")
}
implementation("org.jclarion:image4j:0.7")
implementation("org.apache.commons:commons-text:1.9")
testImplementation("net.mamoe.yamlkt:yamlkt-jvm:0.9.0")
testImplementation(kotlin("test-junit"))
testImplementation(junit("api", Versions.junit))
testRuntimeOnly(junit("engine", Versions.junit))
}
mirai {
configureShadow {
exclude {
it.path.startsWith("kotlin")
}
exclude {
it.path.startsWith("org/intellij")
}
exclude {
it.path.startsWith("org/jetbrains")
}
exclude {
it.path.startsWith("org/slf4j")
}
}
}
tasks {
test {
useJUnitPlatform()
}
}