Skip to content

Commit

Permalink
Remove beta warning
Browse files Browse the repository at this point in the history
  • Loading branch information
shedaniel committed Jan 10, 2024
1 parent 0446bbf commit 36ec0dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/net/fabricmc/loom/LoomGradlePlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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();
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/net/fabricmc/loom/util/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 36ec0dc

Please sign in to comment.