This commit is contained in:
modmuss50 2022-05-20 13:20:29 +01:00
parent 4d5f8d097f
commit b0ddb4cc95
2 changed files with 17 additions and 13 deletions

View file

@ -208,6 +208,7 @@ dependencies {
include project(":RebornCore")
// Blocked on https://github.com/shedaniel/RoughlyEnoughItems/issues/856
disabledOptionalDependency "me.shedaniel:RoughlyEnoughItems-fabric:${project.rei_version}"
disabledOptionalDependency "com.github.emilyploszaj:trinkets:${project.trinkets_version}"
disabledOptionalDependency "net.oskarstrom:DashLoader:${project.dashloader_version}"
@ -223,21 +224,24 @@ dependencies {
}
def optionalDependency(String dep) {
dependencies.modLocalRuntime (dep) {
exclude group: "net.fabricmc.fabric-api"
exclude module: "nbt-crafting"
}
dependencies.modCompileOnly (dep) {
exclude group: "net.fabricmc.fabric-api"
exclude module: "nbt-crafting"
}
def excludes = {
exclude group: "net.fabricmc.fabric-api"
exclude module: "nbt-crafting"
exclude module: "modmenu"
}
dependencies.modLocalRuntime(dep, excludes)
dependencies.modCompileOnly(dep, excludes)
}
def disabledOptionalDependency(String dep) {
dependencies.modCompileOnly (dep) {
exclude group: "net.fabricmc.fabric-api"
exclude module: "nbt-crafting"
}
def excludes = {
exclude group: "net.fabricmc.fabric-api"
exclude module: "nbt-crafting"
exclude module: "modmenu"
}
dependencies.modCompileOnly(dep, excludes)
}
loom {

View file

@ -13,6 +13,6 @@ org.gradle.jvmargs=-Xmx2G
# Dependencies
energy_version=2.2.0
rei_version=8.1.457
rei_version=9.0.458
trinkets_version=3.0.2
dashloader_version=2.0