forked from rfresh2/ZenithProxyWebAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
51 lines (44 loc) · 1.58 KB
/
build.gradle.kts
File metadata and controls
51 lines (44 loc) · 1.58 KB
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
plugins {
id("zenithproxy.plugin.dev") version "1.0.0-SNAPSHOT"
}
group = properties["maven_group"] as String
version = properties["plugin_version"] as String
val mc = properties["mc"] as String
java { toolchain { languageVersion = JavaLanguageVersion.of(25) } }
zenithProxyPlugin {
templateProperties = mapOf(
"version" to project.version
)
javaReleaseVersion = JavaLanguageVersion.of(21)
}
repositories {
maven("https://maven.2b2t.vc/releases") {
description = "ZenithProxy Releases and Dependencies"
}
maven("https://maven.2b2t.vc/remote") {
description = "Dependencies used by ZenithProxy"
}
}
dependencies {
zenithProxy("com.zenith:ZenithProxy:$mc-SNAPSHOT")
shade("io.javalin:javalin:6.7.0")
// todo: remove when javalin updates to jackson 3
shade("com.fasterxml.jackson.core:jackson-core:2.21.1")
shade("com.fasterxml.jackson.core:jackson-databind:2.21.1")
shade("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.20.1")
}
tasks {
shadowJar {
val shadowPackage = "dev.zenith.web.shadow"
relocate("io.javalin", "$shadowPackage.javalin")
relocate("jakarta.servlet", "$shadowPackage.jakarta.servlet")
relocate("kotlin", "$shadowPackage.kotlin")
relocate("org.eclipse", "$shadowPackage.org.eclipse")
exclude("META-INF/maven/**")
// todo: transform service files? seems to work fine without them for now
dependencies {
exclude(dependency("org.slf4j:.*:.*"))
exclude(dependency("org.jetbrains:annotations:.*:.*"))
}
}
}