Skip to content

Commit

Permalink
build: switch to composite build
Browse files Browse the repository at this point in the history
  • Loading branch information
ishland committed Dec 19, 2024
1 parent 8ff8f27 commit 7d66f12
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "netty-raknet"]
path = netty-raknet
url = https://github.com/RelativityMC/netty-raknet.git
6 changes: 3 additions & 3 deletions common/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
dependencies {
api("com.github.RelativityMC.netty-raknet:netty-raknet-common:${project.netty_raknet_version}") {
api("com.github.RelativityMC.netty-raknet:netty-raknet-common") {
transitive = false
}
api("com.github.RelativityMC.netty-raknet:netty-raknet-client:${project.netty_raknet_version}")
api("com.github.RelativityMC.netty-raknet:netty-raknet-server:${project.netty_raknet_version}")
api("com.github.RelativityMC.netty-raknet:netty-raknet-client")
api("com.github.RelativityMC.netty-raknet:netty-raknet-server")
api("org.apache.commons:commons-math3:3.6.1")

//noinspection GradlePackageUpdate
Expand Down
1 change: 0 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ archives_base_name = raknetify

# Dependencies
fabric_version=0.44.0+1.18
netty_raknet_version=3ecc41f4e9
#mixinextras_version=0.1.1
1 change: 1 addition & 0 deletions netty-raknet
Submodule netty-raknet added at 8aa3e2
8 changes: 8 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ pluginManagement {

rootProject.name = "raknetify"

includeBuild('netty-raknet') {
dependencySubstitution {
substitute module("com.github.RelativityMC.netty-raknet:netty-raknet-common") using project(":netty-raknet-common")
substitute module("com.github.RelativityMC.netty-raknet:netty-raknet-client") using project(":netty-raknet-client")
substitute module("com.github.RelativityMC.netty-raknet:netty-raknet-server") using project(":netty-raknet-server")
}
}

include "fabric"
include "velocity"
include "bungee"
Expand Down
6 changes: 3 additions & 3 deletions velocity/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ dependencies {
shadowInclude implementation(project(":common"))

// copied here to workaround incomplete fastutil in velocity
api("com.github.RelativityMC.netty-raknet:netty-raknet-common:${project.netty_raknet_version}") {
api("com.github.RelativityMC.netty-raknet:netty-raknet-common") {
transitive = false
}
api("com.github.RelativityMC.netty-raknet:netty-raknet-client:${project.netty_raknet_version}")
api("com.github.RelativityMC.netty-raknet:netty-raknet-server:${project.netty_raknet_version}")
api("com.github.RelativityMC.netty-raknet:netty-raknet-client")
api("com.github.RelativityMC.netty-raknet:netty-raknet-server")
}

processResources {
Expand Down

0 comments on commit 7d66f12

Please sign in to comment.