Skip to content

Commit

Permalink
update recipe viewer dependencies to fix transitive deps
Browse files Browse the repository at this point in the history
  • Loading branch information
rlnt committed Sep 27, 2024
1 parent cb2854e commit c95b0a5
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ dependencies {
modCompileOnly("mezz.jei:jei-$minecraftVersion-common-api:$jeiVersion") // required for jei plugin
modCompileOnly("me.shedaniel:RoughlyEnoughItems-api:$reiVersion") // required for rei plugin
compileOnly("me.shedaniel:REIPluginCompatibilities-forge-annotations:9.+") // required to disable rei compat layer
modCompileOnly("dev.emi:emi-xplat-intermediary:$emiVersion+1.21:api") // required for emi plugin TODO: replace on EMI release
modCompileOnly("dev.emi:emi-xplat-intermediary:$emiVersion+$minecraftVersion:api") // required for emi plugin
}

buildConfig {
Expand Down
4 changes: 2 additions & 2 deletions Fabric/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ dependencies {
// compile time
modCompileOnly("mezz.jei:jei-$minecraftVersion-fabric-api:$jeiVersion") // required for common jei plugin
modCompileOnly("me.shedaniel:RoughlyEnoughItems-api-fabric:$reiVersion") // required for common rei plugin
modCompileOnly("dev.emi:emi-fabric:$emiVersion+1.21:api") // required for common emi plugin TODO: replace on EMI release
modCompileOnly("dev.emi:emi-fabric:$emiVersion+$minecraftVersion:api") // required for common emi plugin

// runtime
if (enableRuntimeRecipeViewer == "true") {
modLocalRuntime(
when (fabricRecipeViewer) {
"jei" -> "mezz.jei:jei-$minecraftVersion-fabric:$jeiVersion"
"rei" -> "me.shedaniel:RoughlyEnoughItems-fabric:$reiVersion"
"emi" -> "dev.emi:emi-fabric:$emiVersion+1.21" // TODO: replace on EMI release
"emi" -> "dev.emi:emi-fabric:$emiVersion+$minecraftVersion"
else -> throw GradleException("Invalid fabricRecipeViewer value: $fabricRecipeViewer")
}
)
Expand Down
5 changes: 2 additions & 3 deletions NeoForge/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,15 @@ dependencies {
}
// TODO go back to API when solved: https://github.com/architectury/architectury-loom/issues/204
modCompileOnly("me.shedaniel:RoughlyEnoughItems-neoforge:$reiVersion") // required for common rei plugin
modLocalRuntime("dev.architectury:architectury-neoforge:13.0.6") // TODO: Remove on new REI version
modCompileOnly("dev.emi:emi-neoforge:$emiVersion+1.21:api") // required for common emi plugin TODO: replace on EMI release
modCompileOnly("dev.emi:emi-neoforge:$emiVersion+$minecraftVersion:api") // required for common emi plugin

// runtime
forgeRuntimeLibrary("org.junit.jupiter:junit-jupiter-api:$junitVersion")
if (enableRuntimeRecipeViewer == "true") {
when (neoforgeRecipeViewer) {
"jei" -> modLocalRuntime("mezz.jei:jei-$minecraftVersion-neoforge:$jeiVersion") { isTransitive = false }
"rei" -> modLocalRuntime("me.shedaniel:RoughlyEnoughItems-neoforge:$reiVersion")
"emi" -> modLocalRuntime("dev.emi:emi-neoforge:$emiVersion+1.21") //TODO: replace on EMI release
"emi" -> modLocalRuntime("dev.emi:emi-neoforge:$emiVersion+$minecraftVersion")
else -> throw GradleException("Invalid forgeRecipeViewer value: $neoforgeRecipeViewer")
}
}
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ subprojects {
"minecraft"("com.mojang:minecraft:$minecraftVersion")
"mappings"(loom.layered {
officialMojangMappings()
parchment("org.parchmentmc.data:parchment-1.21:$parchmentVersion@zip") // TODO: replace on aprchment update
parchment("org.parchmentmc.data:parchment-1.21:$parchmentVersion@zip") // TODO: replace on parchment update
})

/**
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ parchmentVersion = 2024.07.28
# Recipe Viewers
enableRuntimeRecipeViewer = true
jeiVersion = 19.8.4.113
reiVersion = 16.0.754
emiVersion = 1.1.10
reiVersion = 16.0.762
emiVersion = 1.1.13
fabricRecipeViewer = rei
neoforgeRecipeViewer = emi

Expand Down

0 comments on commit c95b0a5

Please sign in to comment.