-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
65 lines (54 loc) · 1.7 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
plugins {
java
id("net.kyori.blossom") version "2.1.0"
id("net.kyori.indra.git") version "3.1.3"
id("io.freefair.lombok") version "8.10.2"
id("com.gradleup.shadow") version "8.3.3"
id("org.jetbrains.gradle.plugin.idea-ext") version "1.1.9"
}
repositories {
mavenCentral()
maven("https://repo.opencollab.dev/main/")
}
dependencies {
implementation("org.spongepowered", "configurate-yaml", "4.2.0-GeyserMC-SNAPSHOT")
compileOnly("org.geysermc.geyser", "core", "2.4.4-SNAPSHOT")
compileOnly("org.projectlombok", "lombok", "1.18.34")
annotationProcessor("org.projectlombok", "lombok", "1.18.34")
testCompileOnly("org.projectlombok", "lombok", "1.18.34")
testAnnotationProcessor("org.projectlombok", "lombok", "1.18.34")
}
tasks {
build {
dependsOn(shadowJar)
}
compileJava {
options.encoding = Charsets.UTF_8.name()
options.release.set(17)
}
shadowJar {
archiveBaseName.set(project.name)
archiveClassifier.set(null as String?)
relocate("org.spongepowered", "com.triassic.geyserdebuginfo.lib.org.spongepowered")
}
processResources {
filesMatching("extension.yml") {
expand(
"name" to project.name,
"version" to project.version
)
}
}
sourceSets {
main {
blossom {
javaSources {
property("version", project.version.toString())
property("gitBranch", indraGit.branchName())
property("gitCommit", indraGit.commit()?.name)
}
}
}
}
}
java.toolchain.languageVersion = JavaLanguageVersion.of(17)