Split Minecraft and Forge jars (#34)

* Split Forge & Minecraft jars, WIP!

Signed-off-by: shedaniel <daniel@shedaniel.me>

* Properly remap

Signed-off-by: shedaniel <daniel@shedaniel.me>

* Use async

Signed-off-by: shedaniel <daniel@shedaniel.me>

* Change configurations

Signed-off-by: shedaniel <daniel@shedaniel.me>
This commit is contained in:
shedaniel
2021-07-14 16:51:14 +08:00
committed by GitHub
parent 711212b2a9
commit 55e5b30c51
13 changed files with 296 additions and 88 deletions

View File

@@ -34,6 +34,8 @@ import org.gradle.api.initialization.Settings;
import org.gradle.api.invocation.Gradle;
import org.gradle.api.plugins.PluginAware;
import net.fabricmc.loom.util.Constants;
public class LoomRepositoryPlugin implements Plugin<PluginAware> {
@Override
public void apply(PluginAware target) {
@@ -67,6 +69,15 @@ public class LoomRepositoryPlugin implements Plugin<PluginAware> {
repo.setName("UserLocalRemappedMods");
repo.setUrl(cache.getRemappedModCache());
});
repositories.maven(repo -> {
repo.setName("Architectury");
repo.setUrl("https://maven.architectury.dev/");
repo.mavenContent(content -> {
content.releasesOnly();
String[] dep = Constants.Dependencies.FORGE_RUNTIME.split(":");
content.includeVersion(dep[0], dep[1], Constants.Dependencies.Versions.FORGE_RUNTIME);
});
});
repositories.maven(repo -> {
repo.setName("Fabric");
repo.setUrl("https://maven.fabricmc.net/");