From 36ec0dc99d978872ba45b513bb906479c3880977 Mon Sep 17 00:00:00 2001 From: shedaniel Date: Wed, 10 Jan 2024 22:22:46 +0900 Subject: [PATCH] Remove beta warning --- src/main/java/net/fabricmc/loom/LoomGradlePlugin.java | 7 ++++++- src/main/java/net/fabricmc/loom/util/Constants.java | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/fabricmc/loom/LoomGradlePlugin.java b/src/main/java/net/fabricmc/loom/LoomGradlePlugin.java index 3f4833bc6..08cc445bb 100644 --- a/src/main/java/net/fabricmc/loom/LoomGradlePlugin.java +++ b/src/main/java/net/fabricmc/loom/LoomGradlePlugin.java @@ -51,6 +51,7 @@ import net.fabricmc.loom.extension.LoomGradleExtensionImpl; import net.fabricmc.loom.task.LoomTasks; import net.fabricmc.loom.task.RemapTaskConfiguration; +import net.fabricmc.loom.util.Constants; import net.fabricmc.loom.util.LibraryLocationLogger; public class LoomGradlePlugin implements BootstrappedPlugin { @@ -88,7 +89,11 @@ public void apply(Project project) { loggedVersions.add(LOOM_VERSION); System.setProperty("loom.printed.logged", String.join(",", loggedVersions)); project.getLogger().lifecycle("Architectury Loom: " + LOOM_VERSION); - project.getLogger().lifecycle("This version of Architectury Loom is in beta! Please report any issues you encounter: https://github.com/architectury/architectury-loom/issues"); + if (Constants.PLUGIN_BETA) { + project.getLogger().lifecycle("This version of Architectury Loom is in beta! Please report any issues you encounter: https://github.com/architectury/architectury-loom/issues"); + } else if (Constants.PLUGIN_DEPRECATED) { + project.getLogger().lifecycle("You are using an outdated version of Architectury Loom! This version will not receive any support, please consider updating!"); + } } LibraryLocationLogger.logLibraryVersions(); diff --git a/src/main/java/net/fabricmc/loom/util/Constants.java b/src/main/java/net/fabricmc/loom/util/Constants.java index a9e3f313c..dd7ccb5f5 100644 --- a/src/main/java/net/fabricmc/loom/util/Constants.java +++ b/src/main/java/net/fabricmc/loom/util/Constants.java @@ -28,6 +28,8 @@ public class Constants { public static final String PLUGIN_ID = "dev.architectury.loom"; + public static final boolean PLUGIN_BETA = false; + public static final boolean PLUGIN_DEPRECATED = false; public static final String LIBRARIES_BASE = "https://libraries.minecraft.net/"; public static final String RESOURCES_BASE = "https://resources.download.minecraft.net/"; public static final String VERSION_MANIFESTS = "https://piston-meta.mojang.com/mc/game/version_manifest_v2.json";