-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle.kts
49 lines (42 loc) · 1.19 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
plugins {
kotlin("jvm") version "1.7.22"
kotlin("plugin.serialization") version "1.7.22"
id("net.mamoe.mirai-console") version "2.14.0"
}
group = "xyz.cssxsh.mirai.novelai"
version = "1.1.1"
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
compileOnly("org.bouncycastle:bcprov-jdk15on:1.70")
testImplementation(kotlin("test"))
//
implementation(platform("net.mamoe:mirai-bom:2.14.0"))
testImplementation("net.mamoe:mirai-logging-slf4j")
//
implementation(platform("io.ktor:ktor-bom:2.1.3"))
implementation("io.ktor:ktor-client-okhttp")
implementation("io.ktor:ktor-client-auth")
implementation("io.ktor:ktor-client-encoding")
implementation("io.ktor:ktor-client-content-negotiation")
implementation("io.ktor:ktor-serialization-kotlinx-json")
//
implementation(platform("com.squareup.okhttp3:okhttp-bom:4.10.0"))
implementation("com.squareup.okhttp3:okhttp-dnsoverhttps")
//
implementation(platform("org.slf4j:slf4j-parent:2.0.6"))
testImplementation("org.slf4j:slf4j-simple")
}
kotlin {
explicitApi()
}
mirai {
jvmTarget = JavaVersion.VERSION_11
}
tasks {
test {
useJUnitPlatform()
}
}