Update ReplayStudio so it works via includeBuild

This commit is contained in:
Jonas Herzig
2024-07-01 12:24:53 +02:00
parent a04fd5b00b
commit 329530de0e
3 changed files with 5 additions and 12 deletions

View File

@@ -156,15 +156,9 @@ dependencies {
implementation(shadow("com.github.ReplayMod.JavaBlend:2.79.0:a0696f8")!!) implementation(shadow("com.github.ReplayMod.JavaBlend:2.79.0:a0696f8")!!)
implementation(shadow("com.github.ReplayMod:ReplayStudio") { implementation(shadow("com.github.ReplayMod:ReplayStudio")!!)
attributes { // FIXME hack because I don't know how to get this to be inherited properly
// Force use of jar (as opposed to classes directory) because only the jar contains the relocated ViaVersion implementation(rootProject.files("libs/ReplayStudio/.gradle/prebundled-jars/viaVersion.jar"))
// Doesn't seem to work for IDE though, so will have to publishToMavenLocal it for that.
attribute(LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE, objects.named(LibraryElements.JAR))
}
})
// FIXME this should be pulled in by ReplayStudio, and IntelliJ sees it, but javac for some reason does not
implementation("com.github.viaversion:opennbt:0a02214") // 2.0-SNAPSHOT (ViaVersion Edition)
implementation(project(path = jGui.path, configuration = "namedElements")) implementation(project(path = jGui.path, configuration = "namedElements"))
implementation(shadow("com.github.ReplayMod:lwjgl-utils:27dcd66")!!) implementation(shadow("com.github.ReplayMod:lwjgl-utils:27dcd66")!!)

View File

@@ -34,8 +34,7 @@ subprojects {
maven("https://jitpack.io") maven("https://jitpack.io")
} }
} }
if (name == "jGui" || name == "ReplayStudio") {
if (name == "jGui") {
return@subprojects return@subprojects
} }
val (_, minor) = name.split("-")[0].split(".") val (_, minor) = name.split("-")[0].split(".")