-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.gradle.kts
93 lines (78 loc) · 3.24 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
90
91
92
93
/*
*
* * HMCLeaves
* * Copyright (C) 2022 Hibiscus Creative Studios
* *
* * This program is free software: you can redistribute it and/or modify
* * it under the terms of the GNU General Public License as published by
* * the Free Software Foundation, either version 3 of the License, or
* * (at your option) any later version.
* *
* * This program is distributed in the hope that it will be useful,
* * but WITHOUT ANY WARRANTY; without even the implied warranty of
* * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* * GNU General Public License for more details.
* *
* * You should have received a copy of the GNU General Public License
* * along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
plugins {
id("java")
id("com.github.johnrengelman.shadow") version "7.1.1"
}
group = "io.github.fisher2911"
version = "1.1.2"
repositories {
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://oss.sonatype.org/content/groups/public/")
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/")
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://oss.sonatype.org/content/repositories/snapshots")
maven("https://oss.sonatype.org/content/repositories/central")
maven("https://jitpack.io")
maven("https://maven.enginehub.org/repo/")
maven("https://repo.codemc.io/repository/maven-snapshots/")
maven("https://mvn.lumine.io/repository/maven-public/") { metadataSources { artifact() } }
maven("https://repo.xenondevs.xyz/releases")
maven("https://repo.hibiscusmc.com/snapshots")
}
dependencies {
implementation(project(path = ":v1_20", configuration = "reobf"))
implementation(project(path = ":v1_19", configuration = "reobf"))
implementation(project(path = ":v1_19_3", configuration = "reobf"))
implementation(project(path = ":v1_19_4", configuration = "reobf"))
implementation(project(path = ":v1_18_2", configuration = "reobf"))
implementation(project(path = ":v1_18", configuration = "reobf"))
implementation(project(path = ":common"))
}
tasks {
build {
dependsOn(shadowJar)
}
compileJava {
options.encoding = Charsets.UTF_8.name()
options.release.set(17)
}
shadowJar {
// dependsOn(":v1_20")
mergeServiceFiles()
relocate("com.github.retrooper.packetevents", "io.github.fisher2911.hmcleaves.packetevents.api")
relocate("io.github.retrooper.packetevents", "io.github.fisher2911.hmcleaves.packetevents.impl")
relocate("net.kyori", "io.github.fisher2911.hmcleaves.packetevents.kyori")
relocate("org.bstats", "io.github.fisher2911.hmcleaves.bstats")
relocate("io.github.Fisher2911.fisherLib.common", "io.github.fisher2911.hmcleaves.fisherLib.common")
archiveFileName.set("${project.name}-${project.version}.jar")
dependencies {
exclude(dependency("org.yaml:snakeyaml"))
}
}
javadoc {
options.encoding = Charsets.UTF_8.name()
}
processResources {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
filteringCharset = Charsets.UTF_8.name()
}
}