-
-
Notifications
You must be signed in to change notification settings - Fork 70
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
99 lines (80 loc) · 3.06 KB
/
build.gradle.kts
File metadata and controls
99 lines (80 loc) · 3.06 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
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
87
88
89
90
91
92
93
94
95
96
97
98
99
import de.florianreuth.baseproject.*
plugins {
id("net.fabricmc.fabric-loom")
id("de.florianreuth.baseproject")
}
allprojects {
setupProject()
setupFabric()
setupViaPublishing()
repositories {
// Keep them in sync with docs/DEVELOPER_API.md
maven("https://repo.viaversion.com")
maven("https://maven.lenni0451.net/everything")
maven("https://maven.terraformersmc.com/releases")
maven("https://jitpack.io") {
content {
includeGroup("com.github.oryxel1")
}
}
//mavenLocal() // Uncomment during Minecraft updates for preview VV/VB builds
}
}
subprojects {
configureVVDependencies("api")
}
project.property("updating_minecraft").toString().toBoolean().let {
configureTestTasks(it)
if (it) {
increaseVisibleBuildErrors()
}
}
val jij = configureApiJij()
configureVVDependencies("jij")
dependencies {
jij(project(":viafabricplus-api"))
jij(project(":viafabricplus-visuals"))
jij(fabricApi.module("fabric-api-base", fabricApiVersion))
jij(fabricApi.module("fabric-resource-loader-v1", fabricApiVersion))
jij(fabricApi.module("fabric-resource-loader-v0", fabricApiVersion))
jij(fabricApi.module("fabric-networking-api-v1", fabricApiVersion))
jij(fabricApi.module("fabric-command-api-v2", fabricApiVersion))
jij(fabricApi.module("fabric-lifecycle-events-v1", fabricApiVersion))
jij(fabricApi.module("fabric-particles-v1", fabricApiVersion))
jij(fabricApi.module("fabric-registry-sync-v0", fabricApiVersion))
jij("net.lenni0451:Reflect:1.6.3")
jij("de.florianreuth:classic4j:2.3.0")
configureBedrockDependencies()
testImplementation("net.fabricmc:fabric-loader-junit:${property("fabric_loader_version")}")
compileOnly("com.terraformersmc:modmenu:18.0.0-alpha.8")
}
includeTransitiveJijDependencies()
fun configureBedrockDependencies() {
dependencies {
jij("net.raphimc:MinecraftAuth:5.0.1-SNAPSHOT") {
exclude(group = "com.google.code.gson", module = "gson")
}
jij("dev.kastle.netty:netty-transport-raknet:1.7.0") {
exclude(group = "io.netty")
}
jij("dev.kastle.netty:netty-transport-nethernet:1.7.0") {
exclude(group = "io.netty")
}
arrayOf("windows-x86_64", "windows-aarch64", "linux-x86_64", "linux-aarch64", "macos-aarch64").forEach {
jij("dev.kastle.webrtc:webrtc-java:1.0.3:$it")
}
}
}
fun Project.configureVVDependencies(configuration: String) {
dependencies {
configuration("com.viaversion:viaversion-common:5.9.1-SNAPSHOT")
configuration("com.viaversion:viabackwards-common:5.9.1-SNAPSHOT")
configuration("com.viaversion:viaaprilfools-common:4.2.1-SNAPSHOT")
configuration("net.raphimc:ViaLegacy:3.0.15")
configuration("net.raphimc:ViaBedrock:0.0.27-SNAPSHOT") {
exclude(group = "com.mojang", module = "brigadier")
exclude(group = "at.yawk.lz4", module = "lz4-java")
exclude(group = "io.netty")
}
}
}