-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
73 lines (60 loc) · 1.73 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
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 {
mavenCentral()
maven {
name = "ViaVersion"
url = "https://repo.viaversion.com"
}
maven {
name = "Jitpack"
url = "https://jitpack.io"
content {
includeGroup "com.github.RelativityMC.netty-raknet"
includeGroup "com.github.telecran-telecrit"
}
}
}
dependencies {
implementation "net.raphimc:ViaProxy:3.3.6-SNAPSHOT"
include "net.java.dev.jna:jna:5.15.0"
// For dependency sources, see RakNetBackend class
include "com.github.RelativityMC.netty-raknet:netty-raknet-client:ae1f415e05"
include("com.github.telecran-telecrit:JRakNet:d757e139ce") {
exclude group: "org.apache.logging.log4j"
exclude group: "io.netty"
}
}
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"
}
from("LICENSE") {
rename { "${it}_${project.name ?: rootProject.name}" }
}
}