Fixed dependencies

This commit is contained in:
Aleksey 2020-10-07 09:58:09 +03:00
parent cc05c21f62
commit 562e4c255d
2 changed files with 21 additions and 3 deletions

View file

@ -21,9 +21,25 @@ dependencies {
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}" modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
modCompileOnly "me.shedaniel:RoughlyEnoughItems:${project.rei_version}" optionalDependency ("me.shedaniel:RoughlyEnoughItems:${project.rei_version}")
modCompileOnly "me.shedaniel:RoughlyEnoughItems-api:${project.rei_version}" optionalDependency ("me.shedaniel:RoughlyEnoughItems-api:${project.rei_version}")
modCompile "grondag:canvas-mc116:${project.canvas_version}" optionalDependency ("grondag:canvas-mc116:${project.canvas_version}")
modCompile "me.shedaniel.cloth.api:cloth-client-events-v0:${project.cloth_events_version}"
modCompile "me.shedaniel.cloth:config-2:${project.cloth_config_version}"
}
def optionalDependency(String dep) {
dependencies.modRuntime (dep) {
exclude (module: "fabric-api")
exclude (module: "cloth-client-events-v0")
exclude (module: "cloth-config2")
}
dependencies.modCompileOnly (dep) {
exclude (module: "fabric-api")
exclude (module: "cloth-client-events-v0")
exclude (module: "cloth-config2")
}
} }
processResources { processResources {

View file

@ -15,5 +15,7 @@
# Dependencies # Dependencies
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api # currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api
fabric_version = 0.23.0+build.410-1.16 fabric_version = 0.23.0+build.410-1.16
cloth_config_version = 4.8.1
cloth_events_version = 1.4.5
canvas_version = 1.0.+ canvas_version = 1.0.+
rei_version = 5.6.0 rei_version = 5.6.0