-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
52 lines (45 loc) · 1.28 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
// Update Gradle Wrapper using: ./gradlew wrapper --distribution-type bin --gradle-version <version>
// See Gradle's releases here: https://gradle.org/releases/
plugins {
id("java")
// ShadowJar (https://github.com/johnrengelman/shadow/releases)
id("com.github.johnrengelman.shadow") version "8.1.1"
// Git Patcher (https://github.com/zml2008/gitpatcher)
id("ca.stellardrift.gitpatcher") version "1.1.0"
}
group = "uk.protonull.minestom"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven("https://jitpack.io") // com.github.MadMartian:hydrazine-path-finding
}
dependencies {
implementation("net.minestom:minestom:dev")
implementation("ch.qos.logback:logback-classic:1.5.6")
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
gitPatcher.patchedRepos {
create("Minestom") {
submodule = "libs/minestom/upstream"
target.set(File("libs/minestom/patched"))
patches.set(File("libs/minestom/patches"))
}
}
tasks {
jar {
manifest {
attributes["Main-Class"] = "uk.protonull.minestom.Extenstom"
}
}
build {
dependsOn(shadowJar)
}
shadowJar {
mergeServiceFiles()
archiveClassifier.set("") // Prevent the -all suffix
}
}