-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
53 lines (41 loc) · 1.19 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
`kotlin-dsl`
`java-library`
id("java")
id("com.gradleup.shadow") version("8.3.1")
}
group = rootProject.group
version = rootProject.version
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}
repositories {
gradlePluginPortal()
mavenCentral()
}
// TODO: create a SourceSet "shade" for shadowJar to clarify shading?
dependencies {
implementation(project(":core"))
implementation(project(":nms:v1_20_R2", "reobf"))
// shade in these dependencies as well
implementation(libs.reflectionRemapper)
}
tasks.named<ShadowJar>("shadowJar") {
//archiveClassifier.set("implementation")
//exclude("module-info.class")
exclude("*.properties") // TODO: review
archiveFileName.set("${project.name}-${project.version}.jar")
dependencies {
include(project(":core"))
include(project(":nms:v1_20_R2"))
include(dependency("xyz.jpenilla:reflection-remapper"))
}
}
tasks.withType<JavaCompile> {
options.release.set(21)
options.encoding = Charsets.UTF_8.name()
}
tasks.withType<Javadoc> {
options.encoding = Charsets.UTF_8.name()
}