-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
38 lines (33 loc) · 901 Bytes
/
Copy pathbuild.gradle.kts
File metadata and controls
38 lines (33 loc) · 901 Bytes
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
plugins {
id("com.gradleup.shadow") version "9.6.1"
id("java")
}
group = "com.viaversion"
version = "1.4.0"
dependencies {
compileOnly("com.viaversion:viaversion-common:5.9.0")
compileOnly("com.viaversion:viabackwards-common:5.9.0")
compileOnly("com.viaversion:viarewind-common:4.1.0")
compileOnly("com.viaversion:viaaprilfools-common:4.2.0")
compileOnly("io.netty:netty-all:4.1.112.Final")
compileOnly("org.spongepowered:spongeapi:8.0.0")
}
tasks {
build {
dependsOn(shadowJar)
}
shadowJar {
archiveFileName.set("ViaSponge-${project.version}.jar")
}
processResources {
val projectVersion = project.version
filesMatching("META-INF/sponge_plugins.json") {
expand(mapOf("version" to projectVersion))
}
}
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}