This repository has been archived by the owner on Jan 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle.kts
92 lines (87 loc) · 2.55 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
82
83
84
85
86
87
88
89
90
91
92
plugins {
kotlin("jvm")
id("com.github.johnrengelman.shadow")
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("com.guardsquare:proguard-gradle:7.3.2")
}
}
subprojects {
group = rootProject.group
version = rootProject.version
apply {
plugin<com.github.jengelman.gradle.plugins.shadow.ShadowPlugin>()
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 = "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
compileOnly(platform("org.jetbrains.kotlin:kotlin-bom:$kotlinVersion"))
//基础库
compileOnly(kotlin("stdlib"))
// 数据库
val exposedVersion: String by rootProject
val nbtEditorVersion: String by rootProject
compileOnly("io.github.bananapuncher714:nbteditor:$nbtEditorVersion")
compileOnly("me.clip:placeholderapi:2.11.2")
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")
}
tasks {
compileJava {
options.encoding = "UTF-8"
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
}
}
}
repositories {
// 阿里的服务器速度快一点
maven {
name = "aliyun"
url = uri("https://maven.aliyun.com/repository/public/")
}
google()
mavenCentral()
}
dependencies {
//基础库
compileOnly(kotlin("stdlib"))
}