-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
70 lines (59 loc) · 2.06 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
java
id("com.github.johnrengelman.shadow") version ("7.1.0")
id("io.freefair.lombok") version "6.6.2"
}
group = "cc.ddev"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
mavenLocal()
maven(url = "https://jitpack.io")
}
dependencies {
implementation("dev.hollowcube:minestom-ce:9d6752c86f")
implementation("com.github.DuranDevelopment:instanceguard:1c50091bc9") {
exclude(group = "dev.hollowcube", module = "minestom-ce")
}
implementation("com.github.Minestom.VanillaReimplementation:core:de143342b9") {
exclude(group = "dev.hollowcube", module = "minestom-ce")
}
/* Local development
implementation("cc.ddev:instanceguard:1.0-SNAPSHOT") {
exclude(group = "com.github.Minestom", module = "Minestom")
}
*/
implementation("com.zaxxer:HikariCP:5.1.0")
implementation("com.github.simplix-softworks:simplixstorage:3.2.7")
implementation("net.kyori:adventure-text-minimessage:4.15.0")
implementation("com.github.Mindgamesnl:storm:e1f961b480")
implementation("mysql:mysql-connector-java:8.0.33") /* Adding drivers for MySQL and SQLite */
implementation("org.xerial:sqlite-jdbc:3.45.0.0")
compileOnly("junit:junit:4.13.2")
implementation("org.slf4j:slf4j-api:2.0.11")
implementation("me.hsgamer:hscore-minestom-gui:4.3.28")
implementation("net.objecthunter:exp4j:0.4.8")
implementation("com.google.guava:guava:33.0.0-jre")
}
tasks {
named<ShadowJar>("shadowJar") {
archiveBaseName.set("feather")
archiveFileName.set("feather-${project.version}.jar")
mergeServiceFiles()
manifest {
attributes(mapOf("Main-Class" to "cc.ddev.feather.Server", "Multi-Release" to "true"))
}
fun reloc(pkg: String) = relocate(pkg, "cc.ddev.shaded.$pkg")
reloc("de.leonhard.storage")
reloc("com.zaxxer.hikari")
}
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
tasks {
build {
dependsOn(shadowJar)
}
}