This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
86 lines (74 loc) · 2.11 KB
/
build.gradle
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
plugins {
id "java"
}
base {
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
compileJava.options.encoding = compileTestJava.options.encoding = javadoc.options.encoding = "UTF-8"
group = project.maven_group ?: rootProject.maven_group
archivesName = project.maven_name ?: rootProject.maven_name
version = project.maven_version ?: rootProject.maven_version
}
configurations {
include
implementation.extendsFrom include
api.extendsFrom include
}
repositories {
mavenLocal()
mavenCentral()
maven {
name = "Lenni0451"
url = "https://maven.lenni0451.net/everything"
}
maven {
name = "ViaVersion"
url "https://repo.viaversion.com"
}
maven {
name = "Jitpack"
url = "https://jitpack.io"
}
maven {
name = "GeyserMC Main"
url = "https://repo.opencollab.dev/main/"
}
maven {
name = "Sonatype Snapshots"
url "https://oss.sonatype.org/content/repositories/snapshots/"
}
maven {
name = "Sonatype Snapshots 2"
url = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
}
}
dependencies {
implementation "net.raphimc:ViaProxy:3.0.22"
include "org.geysermc.geyser:core:latest.integration"
}
processResources {
inputs.property "version", project.version
filesMatching("viaproxy.yml") {
expand "version": project.version
}
}
jar {
dependsOn configurations.include
from {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
configurations.include.collect {
zipTree(it)
}
} {
exclude "META-INF/*.RSA", "META-INF/*.SF", "META-INF/*.DSA"
// Remove libraries already included in ViaProxy to prevent class loading issues
// Should be excluded in the dependencies block, but that doesn't work for some reason
exclude "io/netty/"
exclude "org/slf4j/"
exclude "org/objectweb/asm/"
exclude "com/google/common/"
exclude "com/google/gson/"
}
from("LICENSE") {
rename { "${it}_${project.name ?: rootProject.name}" }
}
}