-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
46 lines (36 loc) · 952 Bytes
/
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
val kotlinVersion = "1.8.0"
kotlin("jvm") version kotlinVersion
kotlin("plugin.serialization") version kotlinVersion
id("net.mamoe.mirai-console") version "2.14.0"
}
allprojects {
apply(plugin = "kotlin")
apply(plugin = "kotlinx-serialization")
apply(plugin = "net.mamoe.mirai-console")
group = "io.github.argonariod"
version = "1.0.0"
repositories {
// maven("https://maven.aliyun.com/repository/public")
mavenCentral()
}
dependencies {
testImplementation(kotlin("test"))
}
mirai {
jvmTarget = JavaVersion.VERSION_11
}
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "11"
}
}
tasks.withType<JavaCompile> {
sourceCompatibility = "11"
targetCompatibility = "11"
}
tasks.test {
useJUnitPlatform()
}
}