-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
106 lines (82 loc) · 2.8 KB
/
build.gradle
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
plugins {
id 'java'
id 'io.github.goooler.shadow' version '8.1.7'
}
allprojects {
group = 'com.tcoded'
version = '2.2.0'
repositories {
mavenCentral()
maven {
name = "codemc-releases"
url = "https://repo.codemc.io/repository/maven-releases/"
}
maven {
name = "codemc-snapshots"
url = "https://repo.codemc.io/repository/maven-snapshots/"
}
maven {
name = "spigotmc-repo"
url = "https://hub.spigotmc.org/nexus/content/repositories/snapshots/"
}
maven { url 'https://jitpack.io' }
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'io.github.goooler.shadow'
group = rootProject.group + '.nochatreports'
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
jar {
manifest {}
}
// shadowJar {
// minimize() {
// logger.log(LogLevel.ERROR, "Minimizing ${project.name}")
// exclude project(':nms')
// exclude "META-INF", "META-INF/**"
// }
// }
test {
useJUnitPlatform()
}
}
tasks.assemble {
dependsOn shadowJar
}
dependencies {
implementation project(":plugin")
implementation project(":nms:common")
// implementation project(":nms:v1_19_4")
implementation project(path: ":nms:v1_19_4", configuration: "reobf")
implementation project(path: ":nms:v1_20", configuration: "reobf")
implementation project(path: ":nms:v1_20_2", configuration: "reobf")
implementation project(path: ":nms:v1_20_3", configuration: "reobf")
implementation project(path: ":nms:v1_20_4", configuration: "reobf")
implementation project(path: ":nms:v1_20_6", configuration: "reobf")
implementation project(path: ":nms:v1_21", configuration: "reobf")
implementation project(path: ":nms:v1_21_1", configuration: "reobf")
implementation project(path: ":nms:v1_21_3", configuration: "reobf")
implementation "com.github.retrooper:packetevents-spigot:2.6.0-SNAPSHOT"
}
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
jar {
archiveClassifier.set("raw")
}
shadowJar {
archiveClassifier.set("")
// PacketEvents
relocate 'com.github.retrooper.packetevents', "${project.group}.nochatreports.lib.packetevents.api"
relocate 'io.github.retrooper.packetevents', "${project.group}.nochatreports.lib.packetevents.impl"
relocate 'net.kyori', "${project.group}.nochatreports.lib.packetevents.kyori"
// SpigotUpdateChecker
relocate 'com.tcoded.lightlibs.updatechecker', "${project.group}.nochatreports.lib.spigotupdatechecker"
// FoliaLib
relocate "com.tcoded.folialib", "com.tcoded.nochatreports.plugin.lib.folialib"
}