-
Notifications
You must be signed in to change notification settings - Fork 47
/
build.gradle.kts
51 lines (43 loc) · 1.25 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
import com.github.jengelman.gradle.plugins.shadow.transformers.Log4j2PluginsCacheFileTransformer
description = "Proxy pass allows developers to MITM a vanilla client and server without modifying them."
plugins {
id("java")
id("application")
alias(libs.plugins.shadow)
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
repositories {
mavenLocal()
mavenCentral()
maven("https://repo.opencollab.dev/maven-snapshots")
maven("https://repo.opencollab.dev/maven-releases")
}
dependencies {
compileOnly(libs.lombok)
annotationProcessor(libs.lombok)
compileOnly(libs.spotbugs.annotations)
implementation(libs.bedrock.codec)
implementation(libs.bedrock.common)
implementation(libs.bedrock.connection)
implementation(libs.jackson.databind)
implementation(libs.jackson.dataformat.yaml)
implementation(libs.common)
implementation(libs.jansi)
implementation(libs.jline.reader)
}
application {
mainClass.set("org.cloudburstmc.proxypass.ProxyPass")
}
tasks.shadowJar {
archiveClassifier.set("")
archiveVersion.set("")
transform(Log4j2PluginsCacheFileTransformer())
}
tasks.named<JavaExec>("run") {
workingDir = projectDir.resolve("run")
workingDir.mkdir()
}