Skip to content

Commit abe8f27

Browse files
authored
Merge pull request #132 from EngineHub/chore/use-published-protocol
2 parents e5f1072 + 4653c2d commit abe8f27

File tree

20 files changed

+21
-587
lines changed

20 files changed

+21
-587
lines changed

HEADER-PROTOCOL

Lines changed: 0 additions & 12 deletions
This file was deleted.

build.gradle.kts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,20 @@ allprojects {
1414

1515
repositories {
1616
// mirrors:
17-
// - https://maven.enginehub.org/repo/
18-
// - https://maven.terraformersmc.com/releases/
1917
// - https://maven.minecraftforge.net/
2018
// - https://maven.neoforged.net/
2119
// - https://maven.parchmentmc.org/
22-
// - https://repo.viaversion.com/
23-
maven(url = "https://repo.stellardrift.ca/repository/stable/") {
24-
name = "stellardriftReleases"
20+
maven(url = "https://maven.enginehub.org/repo/") {
21+
name = "enginehub"
2522
mavenContent {
26-
releasesOnly()
2723
excludeGroup("org.lwjgl") // workaround for lwjgl-freetype
2824
}
2925
}
30-
maven(url = "https://repo.stellardrift.ca/repository/snapshots/") {
31-
name = "stellardriftSnapshots"
32-
mavenContent { snapshotsOnly() }
26+
maven(url = "https://maven.terraformersmc.com/releases/") {
27+
name = "terraformersmc"
28+
}
29+
maven(url = "https://repo.viaversion.com/") {
30+
name = "viaversion"
3331
}
3432
}
3533
}

gradle/libs.versions.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ fabricApi = "0.98.0+1.20.6"
99
modmenu = "10.0.0-beta.1"
1010
viafabricplus = "3.3.0"
1111
vineflower = "1.10.1"
12+
cuiProtocol = "4.0.0"
1213

1314
[libraries]
1415
minecraft = { module = "com.mojang:minecraft", version.ref = "minecraft" }
@@ -36,3 +37,11 @@ publishGithubRelease = { id = "ca.stellardrift.publish-github-release", version
3637
shadow = { id = "io.github.goooler.shadow", version = "8.1.7" }
3738
spotless = { id = "com.diffplug.spotless", version = "6.25.0" }
3839
versions = { id = "com.github.ben-manes.versions", version = "0.51.0" }
40+
41+
[libraries.cuiProtocol-fabric]
42+
module = "org.enginehub.worldeditcui-protocol:worldeditcui-protocol-fabric-mc1.20.6"
43+
version.ref = "cuiProtocol"
44+
45+
[libraries.cuiProtocol-neoforge]
46+
module = "org.enginehub.worldeditcui-protocol:worldeditcui-protocol-neoforge-mc1.20.6"
47+
version.ref = "cuiProtocol"

settings.gradle.kts

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,16 @@ pluginManagement {
55
// mirrors:
66
// - https://maven.architectury.dev/
77
// - https://maven.fabricmc.net/
8-
// - gradlePluginPortal
9-
maven(url = "https://repo.stellardrift.ca/repository/stable/") {
10-
name = "stellardriftReleases"
11-
mavenContent { releasesOnly() }
12-
}
13-
maven(url = "https://repo.stellardrift.ca/repository/snapshots/") {
14-
name = "stellardriftSnapshots"
15-
mavenContent { snapshotsOnly() }
8+
maven(url = "https://maven.enginehub.org/repo/") {
9+
name = "enginehub"
1610
}
1711
// maven("https://maven.fabricmc.net/")
18-
// gradlePluginPortal()
12+
gradlePluginPortal()
1913
}
2014
}
2115

2216
sequenceOf(
2317
"fabric",
24-
"protocol-common",
25-
"protocol-fabric",
26-
"protocol-neoforge",
2718
).forEach {
2819
include("worldeditcui-$it")
2920
}

worldeditcui-fabric/build.gradle.kts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,8 @@ loom {
3535

3636
val fabricApi by configurations.creating
3737
dependencies {
38-
implementation(project(":worldeditcui-protocol-fabric", configuration = "namedElements")) { isTransitive = false }
39-
implementation(project(":worldeditcui-protocol-common", configuration = "namedElements")) { isTransitive = false }
40-
include(project(":worldeditcui-protocol-fabric"))
38+
"include"(libs.cuiProtocol.fabric)
39+
"modImplementation"(libs.cuiProtocol.fabric)
4140
modImplementation(libs.fabric.loader)
4241
modImplementation(libs.modmenu)
4342
modCompileOnly(libs.viafabricplus.api) {

worldeditcui-protocol-common/build.gradle.kts

Lines changed: 0 additions & 18 deletions
This file was deleted.

worldeditcui-protocol-common/src/main/java/org/enginehub/worldeditcui/protocol/CUIPacket.java

Lines changed: 0 additions & 83 deletions
This file was deleted.

worldeditcui-protocol-common/src/main/java/org/enginehub/worldeditcui/protocol/CUIPacketHandler.java

Lines changed: 0 additions & 87 deletions
This file was deleted.

worldeditcui-protocol-fabric/build.gradle.kts

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)