Skip to content

Commit

Permalink
Add dev version check in VersionChecker
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
NonSwag committed Oct 2, 2024
1 parent cf997e7 commit f92534b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f92534b

Please sign in to comment.