forked from KadokawaR/Chitung-public
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
55 lines (42 loc) · 1.36 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
plugins {
val kotlinVersion = "1.6.21"
kotlin("jvm") version kotlinVersion
kotlin("plugin.serialization") version kotlinVersion
id("net.mamoe.mirai-console") version "2.7.0"
}
group = "dev.mirai.chitung"
version = "0.1.6"
repositories {
maven{ url =uri("https://maven.aliyun.com/nexus/content/groups/public/")}
jcenter()
mavenCentral()
mavenLocal()
}
dependencies{
//在IDE内运行的mcl添加滑块模块,请参考https://github.com/project-mirai/mirai-login-solver-selenium把版本更新为最新
//runtimeOnly("net.mamoe:mirai-login-solver-selenium:1.0-dev-15")
//Gson
implementation("com.google.code.gson:gson:2.9.0")
implementation("com.google.guava:guava:31.0.1-jre")
//Junit
implementation("junit:junit:4.13.2")
implementation ("org.jsoup:jsoup:1.14.3")
implementation("org.jetbrains.kotlin:kotlin-reflect:1.6.21")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.1")
implementation("org.reflections:reflections:0.10.2")
}
tasks.test {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = "11"
}
}