2021-11-30 20:03:06 +01:00
|
|
|
apply from: "https://jfmods.gitlab.io/scripts/jfmod.gradle"
|
2020-08-06 20:47:44 +02:00
|
|
|
|
2021-04-13 09:30:45 +02:00
|
|
|
ext.flavor = project.hasProperty('flavor') ? project.getProperty('flavor') : 'modrinth'
|
|
|
|
|
2021-01-26 12:41:38 +01:00
|
|
|
repositories {
|
2021-04-13 09:30:45 +02:00
|
|
|
maven { url = "https://maven.shedaniel.me/"; name = "Cloth Config" }
|
2021-01-26 12:41:38 +01:00
|
|
|
}
|
|
|
|
|
2020-08-06 20:47:44 +02:00
|
|
|
dependencies {
|
2022-03-02 18:09:19 +01:00
|
|
|
modRuntimeOnly "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
|
2020-08-06 20:47:44 +02:00
|
|
|
|
2022-07-28 15:30:07 +02:00
|
|
|
modApi("me.shedaniel.cloth:cloth-config-fabric:7.0.73") {
|
2022-02-28 21:44:08 +01:00
|
|
|
exclude(group: "net.fabricmc.fabric-api")
|
|
|
|
}
|
2022-07-28 15:30:07 +02:00
|
|
|
modImplementation "com.terraformersmc:modmenu:4.0.5"
|
2020-08-06 20:47:44 +02:00
|
|
|
}
|
|
|
|
|
2021-04-13 09:30:45 +02:00
|
|
|
if (flavor == "curseforge") {
|
|
|
|
sourceSets.main.java.filter.exclude("**/unsafe/*")
|
|
|
|
sourceSets.main.resources.exclude("**/native/*")
|
|
|
|
}
|