-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle.kts
81 lines (74 loc) · 2.26 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
73
74
75
76
77
78
79
80
81
plugins {
kotlin("jvm")
id("com.gradleup.shadow")
}
subprojects {
group = rootProject.group
version = rootProject.version
apply {
plugin<JavaPlugin>()
plugin<JavaLibraryPlugin>()
}
repositories {
maven {
name = "aliyun"
url = uri("https://maven.aliyun.com/repository/public")
}
maven {
name = "aliyun-google"
url = uri("https://maven.aliyun.com/repository/google")
}
// google()
mavenCentral()
maven {
name = "spigot"
url = uri("https://hub.spigotmc.org/nexus/content/repositories/public/")
}
maven {
name = "papermc"
url = uri("https://repo.papermc.io/repository/maven-public/")
}
maven {
name = "jitpack"
url = uri("https://jitpack.io")
}
maven {
name = "CodeMC"
url = uri("https://repo.codemc.org/repository/maven-public")
}
maven {
name = "PlaceholderAPI"
url = uri("https://repo.extendedclip.com/content/repositories/placeholderapi/")
}
mavenLocal()
}
dependencies {
val kotlinVersion: String by rootProject
val exposedVersion: String by rootProject
compileOnly("de.tr7zw:item-nbt-api-plugin:2.13.2")
compileOnly(platform("org.jetbrains.kotlin:kotlin-bom:$kotlinVersion"))
//基础库
compileOnly(kotlin("stdlib"))
compileOnly("org.spigotmc", "spigot-api", "1.20.3-R0.1-SNAPSHOT")
compileOnly("me.clip:placeholderapi:2.11.6")
// 数据库
compileOnly("org.jetbrains.exposed", "exposed-core", exposedVersion)
compileOnly("org.jetbrains.exposed", "exposed-dao", exposedVersion)
compileOnly("org.jetbrains.exposed", "exposed-jdbc", exposedVersion)
compileOnly("org.jetbrains.exposed", "exposed-java-time", exposedVersion)
compileOnly("com.zaxxer:HikariCP:4.0.3")
}
}
repositories {
// 阿里的服务器速度快一点
maven {
name = "aliyun"
url = uri("https://maven.aliyun.com/repository/public/")
}
google()
mavenCentral()
}
dependencies {
//基础库
compileOnly(kotlin("stdlib"))
}