Added a way to add mods in code and not run on runtime and moved issues and source to gradle.properties

This commit is contained in:
coolGi2007
2022-02-12 19:34:54 +10:30
parent 31f41540c0
commit f0994fff75
6 changed files with 47 additions and 14 deletions
+9 -2
View File
@@ -25,13 +25,20 @@ configurations {
developmentForge.extendsFrom common
}
def addMod(path, enabled) {
if (enabled == "2")
dependencies { modImplementation(path) }
else if (enabled == "1")
dependencies { modCompileOnly(path) }
}
dependencies {
// Forge loader
forge "net.minecraftforge:forge:${rootProject.minecraft_version}-${rootProject.forge_version}"
// Starlight
// modImplementation("curse.maven:starlight-forge-526854:${rootProject.starlight_version_forge}")
// annotationProcessor "org.spongepowered:mixin:0.8.4:processor"
addMod("curse.maven:starlight-forge-526854:${rootProject.starlight_version_forge}", rootProject.enable_starlight_forge)
annotationProcessor "org.spongepowered:mixin:0.8.4:processor"
common(project(path: ":common", configuration: "namedElements")) { transitive false }
shadowMe(project(path: ":common", configuration: "transformProductionForge")) { transitive = false }