-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
70 lines (65 loc) · 2.62 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
plugins {
kotlin("jvm") version "1.5.21"
`java-library`
id("com.github.johnrengelman.shadow") version "6.1.0"
id("io.github.slimjar") version "1.2.1"
}
group = "miyukisystem"
version = "1.0-SNAPSHOT"
repositories {
google()
jcenter()
mavenCentral()
maven("https://jitpack.io")
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://oss.sonatype.org/content/repositories/snapshots/")
maven("https://libraries.minecraft.net/")
maven("https://papermc.io/repo/repository/maven-public/")
maven("https://repo.codemc.io/repository/maven-snapshots/")
maven("https://repo.codemc.org/repository/maven-public/")
flatDir {
dirs("libs", "implementation")
}
}
dependencies {
slim(kotlin("stdlib-jdk8"))
compileOnly(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
implementation(fileTree(mapOf("dir" to "implementation", "include" to listOf("*.jar"))))
compileOnly("com.destroystokyo.paper:paper-api:1.16.5-R0.1-SNAPSHOT")
compileOnly("com.mojang:authlib:1.5.21")
compileOnly("com.github.MilkBowl:VaultAPI:1.7")
compileOnly("org.projectlombok:lombok:1.18.20")
annotationProcessor("org.projectlombok:lombok:1.18.20")
implementation("com.zaxxer:HikariCP:3.4.5")
implementation("org.slf4j:slf4j-api:1.7.30")
implementation("org.slf4j:slf4j-simple:1.7.30")
implementation("io.github.bananapuncher714:nbteditor:7.17.0")
slim("com.github.cryptomorin:XSeries:8.2.0")
slim("com.h2database:h2:1.4.200")
slim("org.mariadb.jdbc:mariadb-java-client:2.7.3")
}
tasks {
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
withType<JavaCompile> {
options.encoding = "UTF-8"
}
slimJar {
relocate("com.zaxxer", "miyukisystem.database")
relocate("kotlin", "miyukisystem.kotlin")
relocate("com.cryptomorin.xseries", "miyukisystem.util.xseries")
relocate("org.h2", "miyukisystem.database.h2")
relocate("org.mariadb", "miyukisystem.database.mariadb")
relocate("org.intellij.lang.annotations", "miyukisystem.util.annotations")
relocate("org.jetbrains.annotations", "miyukisystem.util.annotations")
relocate("com.google.protobuf", "miyukisystem.util.google.protobuf")
}
shadowJar {
relocate("io.github.bananapuncher714.nbteditor", "miyukisystem.util")
relocate("io.github.slimjar", "miyukisystem.util.slimjar")
relocate("net.wesjd.anvilgui", "miyukisystem.util.anvil")
relocate("org.slf4j", "miyukisystem.util.slf4j")
classifier = null
}
}