forked from Arasple/TrChat
-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
88 lines (81 loc) · 2.44 KB
/
build.gradle.kts
File metadata and controls
88 lines (81 loc) · 2.44 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
import io.izzel.taboolib.gradle.*
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
java
id("io.izzel.taboolib") version "2.0.31"
id("org.jetbrains.kotlin.jvm") version "2.2.20"
}
subprojects {
apply<JavaPlugin>()
apply(plugin = "io.izzel.taboolib")
apply(plugin = "org.jetbrains.kotlin.jvm")
taboolib {
env {
install("basic-configuration")
install(
BukkitHook,
BukkitNMSUtil,
BukkitNMSItemTag,
BukkitUI
)
install(
"database",
"database-alkaid-redis",
"database-player"
)
install(
"minecraft-chat",
"minecraft-command-helper",
"minecraft-i18n",
"minecraft-kether",
"minecraft-metrics"
)
install(JavaScript)
install(Bukkit, BungeeCord, Velocity)
modules.remove("minecraft-chat")
disableOnSkippedVersion = false
// disableOnUnsupportedVersion = false
}
version {
taboolib = "6.2.4-e7fd043"
coroutines = null
}
}
// 全局仓库
repositories {
mavenLocal()
mavenCentral()
maven("https://jitpack.io")
maven("https://oss.sonatype.org/content/repositories/snapshots")
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://repo.xenondevs.xyz/releases")
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/")
maven("https://repo.codemc.io/repository/maven-public/")
}
// 全局依赖
dependencies {
compileOnly(kotlin("stdlib"))
compileOnly("com.google.code.gson:gson:2.8.5")
compileOnly("com.google.guava:guava:21.0")
compileOnly("net.kyori:adventure-api:4.26.1")
}
// 编译配置
java {
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
tasks.withType<KotlinCompile> {
compilerOptions {
jvmTarget = JvmTarget.JVM_1_8
freeCompilerArgs = listOf("-Xjvm-default=all")
}
}
}
gradle.buildFinished {
buildDir.deleteRecursively()
}