From f92534b8111753f8483cc18997218830ec6894d4 Mon Sep 17 00:00:00 2001 From: david Date: Wed, 2 Oct 2024 19:00:21 +0200 Subject: [PATCH] Add dev version check in VersionChecker Implemented a check to identify if the running version is "0.0.0," which is designated as a development version. An informational log message is added to confirm the usage of the development version. This enhances clarity during development by informing the user explicitly when a development version is being run. --- .../net/thenextlvl/arkitektonika/version/VersionChecker.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/thenextlvl/arkitektonika/version/VersionChecker.java b/src/main/java/net/thenextlvl/arkitektonika/version/VersionChecker.java index 6a6e515..1614781 100644 --- a/src/main/java/net/thenextlvl/arkitektonika/version/VersionChecker.java +++ b/src/main/java/net/thenextlvl/arkitektonika/version/VersionChecker.java @@ -32,7 +32,9 @@ public boolean isSupported(Release release) { } public void checkVersion() { - retrieveLatestSupportedVersion().thenAccept(version -> { + if (versionRunning.toString().equals("0.0.0")) { + logger.info("You are running a development version of Arkitektonika"); + } else retrieveLatestSupportedVersion().thenAccept(version -> { if (version.equals(versionRunning)) { logger.info("You are running the latest version of Arkitektonika"); } else if (version.compareTo(versionRunning) > 0) {