mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-04-02 13:37:45 -05:00
@@ -35,7 +35,6 @@ import org.gradle.api.plugins.PluginAware;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import net.fabricmc.loom.extension.LoomFiles;
|
||||
import net.fabricmc.loom.util.Constants;
|
||||
import net.fabricmc.loom.util.MirrorUtil;
|
||||
|
||||
public class LoomRepositoryPlugin implements Plugin<PluginAware> {
|
||||
@@ -68,9 +67,7 @@ public class LoomRepositoryPlugin implements Plugin<PluginAware> {
|
||||
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);
|
||||
content.includeGroup("dev.architectury");
|
||||
});
|
||||
});
|
||||
repositories.maven(repo -> {
|
||||
|
||||
@@ -115,7 +115,11 @@ public class ForgeUserdevProvider extends DependencyProvider {
|
||||
|
||||
if (lib.getAsString().startsWith("org.spongepowered:mixin:")) {
|
||||
if (getExtension().isUseFabricMixin()) {
|
||||
dep = addDependency("net.fabricmc:sponge-mixin:0.8.2+build.24", Constants.Configurations.FORGE_DEPENDENCIES);
|
||||
if (lib.getAsString().contains("0.8.2")) {
|
||||
dep = addDependency("net.fabricmc:sponge-mixin:0.8.2+build.24", Constants.Configurations.FORGE_DEPENDENCIES);
|
||||
} else {
|
||||
dep = addDependency("dev.architectury:mixin-patched" + lib.getAsString().substring(lib.getAsString().lastIndexOf(":")) + ".+", Constants.Configurations.FORGE_DEPENDENCIES);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -113,7 +113,7 @@ public class Constants {
|
||||
public static final String TERMINAL_CONSOLE_APPENDER = "1.2.0";
|
||||
public static final String JETBRAINS_ANNOTATIONS = "22.0.0";
|
||||
public static final String JAVAX_ANNOTATIONS = "3.0.2";
|
||||
public static final String FORGE_RUNTIME = "1.0.1";
|
||||
public static final String FORGE_RUNTIME = "1.1.3";
|
||||
public static final String ACCESS_TRANSFORMERS = "3.0.1";
|
||||
public static final String SPECIAL_SOURCE = "1.8.3";
|
||||
public static final String VIGNETTE = "0.2.0.10";
|
||||
|
||||
Reference in New Issue
Block a user