Update build.gradle

This commit is contained in:
Aleksey 2020-10-10 15:26:21 +03:00
parent eaa3049ed1
commit d8095c6fc1

View file

@ -21,24 +21,29 @@ dependencies {
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
optionalDependency ("me.shedaniel:RoughlyEnoughItems:${project.rei_version}")
optionalDependency ("me.shedaniel:RoughlyEnoughItems-api:${project.rei_version}")
optionalDependency ("grondag:canvas-mc116:${project.canvas_version}")
optionalDependency "me.shedaniel:RoughlyEnoughItems:${project.rei_version}"
optionalDependency "me.shedaniel:RoughlyEnoughItems-api:${project.rei_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}"
compilelDependency "me.shedaniel.cloth.api:cloth-client-events-v0:${project.cloth_events_version}"
compilelDependency "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")
exclude group: "net.fabricmc.fabric-api"
exclude module: "cloth-client-events-v0"
exclude module: "config-2"
}
dependencies.modCompileOnly (dep) {
exclude (module: "fabric-api")
exclude (module: "cloth-client-events-v0")
exclude (module: "cloth-config2")
exclude group: "net.fabricmc.fabric-api"
exclude module: "cloth-client-events-v0"
exclude module: "config-2"
}
}
def compilelDependency(String dep) {
dependencies.modCompile (dep) {
exclude group: "net.fabricmc.fabric-api"
}
}