forked from Shadow-Government/MinestomLauncher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
89 lines (73 loc) · 2.42 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
group = "com.thecrownstudios"
version = "1.2.4"
plugins {
id("java")
id("com.github.johnrengelman.shadow") version "8.1.1"
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
tasks.withType<ProcessResources> {
filteringCharset = "UTF-8"
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
tasks.withType<Javadoc> {
options.encoding = "UTF-8"
}
tasks.withType<Jar> {
manifest {
attributes["Main-Class"] = "${project.group}.minestomlauncher.Main"
}
exclude("**/resources/server.json")
}
}
shadow {
tasks.withType<ShadowJar> {
exclude("server.json")
println(message = "SHADOWJAR INFORMATION")
println(message = "- project_name: ${rootProject.name}")
println(message = "- module_name: ${archiveBaseName.get()}")
println(message = "- module_version: ${archiveVersion.get()}")
println(message = "- module_extension: ${archiveExtension.get()}")
println()
archiveFileName.set("${rootProject.name}-${archiveVersion.get()}.${archiveExtension.get()}")
}
}
repositories {
mavenCentral()
maven {
name = "JitPack"
url = uri("https://jitpack.io")
}
maven {
name = "Sponge"
url = uri("https://repo.spongepowered.org/maven")
}
maven {
name = "Sonatype"
url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
}
maven {
name = "Minecraft"
url = uri("https://libraries.minecraft.net")
}
}
dependencies {
val minestom_version = project.property("minestom_version")!! as String
val jnoise_version = project.property("jnoise_version")!! as String
val minimessage_version = project.property("minimessage_version")!! as String
val jackson_version = project.property("jackson_version")!! as String
implementation("com.github.Minestom:Minestom:$minestom_version")
implementation("de.articdive:jnoise-pipeline:$jnoise_version")
implementation("com.github.CatDevz:SlimeLoader:master-SNAPSHOT")
implementation("net.kyori:adventure-text-minimessage:$minimessage_version")
implementation("com.fasterxml.jackson.core:jackson-databind:$jackson_version")
}
tasks {
build {
finalizedBy(shadowJar)
}
}