-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
executable file
·74 lines (57 loc) · 1.69 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
plugins {
java
// ShadowJar (https://github.com/johnrengelman/shadow/releases)
id("com.github.johnrengelman.shadow") version "8.1.1"
}
group = "net.endercube"
version = "1.0.0"
repositories {
mavenCentral()
maven("https://jitpack.io")
// Adventure dev builds
maven(url = "https://s01.oss.sonatype.org/content/repositories/snapshots/") {
name = "sonatype-oss-snapshots"
}
}
dependencies {
// Minestom
implementation("net.minestom:minestom-snapshots:32735340d7")
// Polar
implementation("dev.hollowcube:polar:1.12.2")
// GoldenStack/window
implementation("net.goldenstack:window:1.1")
// Kyori stuff (Adventure)
implementation("net.kyori:adventure-text-serializer-plain:4.18.0")
implementation("net.kyori:adventure-text-minimessage:4.18.0")
implementation("net.kyori:adventure-text-serializer-ansi:4.18.0")
// Configuration API
implementation("org.spongepowered:configurate-hocon:4.1.2")
// Jedis (Redis lib)
implementation("redis.clients:jedis:5.1.1")
// Discord lib
implementation("club.minnced:discord-webhooks:0.8.4")
// Logger
implementation("ch.qos.logback:logback-classic:1.5.6")
// Apache Commons Lang
implementation("org.apache.commons:commons-lang3:3.17.0")
implementation("org.apache.commons:commons-collections4:4.5.0-M3")
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
tasks {
jar {
manifest {
attributes["Main-Class"] = "net.endercube.Main"
}
}
build {
dependsOn(shadowJar)
}
shadowJar {
mergeServiceFiles()
archiveClassifier.set("") // Prevent the -all suffix
}
}