2022-10-07 19:25:25 +02:00
|
|
|
plugins {
|
2023-07-09 16:50:53 +02:00
|
|
|
id("jfmod")
|
2022-10-07 19:25:25 +02:00
|
|
|
}
|
|
|
|
|
2023-07-16 15:07:49 +02:00
|
|
|
allprojects {
|
|
|
|
group = "io.gitlab.jfronny.libjf"
|
|
|
|
}
|
2023-07-09 16:50:53 +02:00
|
|
|
|
2023-07-18 20:36:01 +02:00
|
|
|
val fabricVersion by extra("0.86.0+1.20.1")
|
2023-07-09 16:50:53 +02:00
|
|
|
val commonsVersion by extra("1.3-SNAPSHOT")
|
|
|
|
val gsonCompileVersion by extra("1.3-SNAPSHOT")
|
|
|
|
val modmenuVersion by extra("7.0.1")
|
|
|
|
|
|
|
|
val annotationsVersion by extra("24.0.1")
|
|
|
|
val javapoetVersion by extra("1.13.0")
|
|
|
|
|
|
|
|
jfMod {
|
2023-07-18 20:36:01 +02:00
|
|
|
minecraftVersion = "1.20.1"
|
|
|
|
yarn("build.9")
|
2023-07-09 16:50:53 +02:00
|
|
|
loaderVersion = "0.14.21"
|
|
|
|
|
|
|
|
modrinth {
|
|
|
|
projectId = "libjf"
|
|
|
|
optionalDependencies.add("fabric-api")
|
|
|
|
}
|
|
|
|
curseforge {
|
|
|
|
projectId = "482600"
|
|
|
|
optionalDependencies.add("fabric-api")
|
|
|
|
}
|
|
|
|
}
|
2022-10-07 19:25:25 +02:00
|
|
|
|
|
|
|
allprojects {
|
2023-07-09 16:50:53 +02:00
|
|
|
if (!rootProject.jfMod.isMod(this)) return@allprojects
|
|
|
|
|
|
|
|
base {
|
|
|
|
archivesName = "libjf"
|
|
|
|
}
|
2022-10-07 19:25:25 +02:00
|
|
|
|
|
|
|
dependencies {
|
2023-07-09 16:50:53 +02:00
|
|
|
modLocalRuntime("com.terraformersmc:modmenu:$modmenuVersion") {
|
2023-02-23 20:36:00 +01:00
|
|
|
exclude("net.fabricmc") // required to work around duplicate fabric loaders
|
|
|
|
}
|
2023-07-09 16:50:53 +02:00
|
|
|
modLocalRuntime(fabricApi.module("fabric-command-api-v2", fabricVersion))
|
|
|
|
compileOnly("io.gitlab.jfronny:commons:$commonsVersion")
|
|
|
|
compileOnly("io.gitlab.jfronny:commons-gson:$commonsVersion")
|
2022-10-07 19:25:25 +02:00
|
|
|
}
|
|
|
|
}
|