-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version checker #16
Version checker #16
Commits on Oct 2, 2024
-
Add VersionChecker for handling versioning via GitHub releases
Introduced `VersionChecker` class to manage version checks for the Arkitektonika project using GitHub releases. The new implementation logs whether the running version is the latest, needs an update, or is a snapshot.
Configuration menu - View commit details
-
Copy full SHA for 1fdf603 - Browse repository at this point
Copy the full SHA 1fdf603View commit details -
Add version checking on startup
Introduced VersionChecker to validate application version at startup. This ensures compatibility and helps in maintaining up-to-date software standards.
Configuration menu - View commit details
-
Copy full SHA for 2680d27 - Browse repository at this point
Copy the full SHA 2680d27View commit details -
Add version-checker dependency and minimize shadowJar task
Added the 'net.thenextlvl.core:version-checker:1.2.0' dependency to ensure the application can perform version checks. Also, enabled the 'minimize' option in the shadowJar task to reduce jar size by removing unused classes.
Configuration menu - View commit details
-
Copy full SHA for 63d3423 - Browse repository at this point
Copy the full SHA 63d3423View commit details -
Add package-info.java with null-safety annotations
This new file includes annotations to enforce non-null default behavior for types, fields, methods, and parameters. It improves code robustness by ensuring that null values are not implicitly allowed.
Configuration menu - View commit details
-
Copy full SHA for 12f0ef8 - Browse repository at this point
Copy the full SHA 12f0ef8View commit details -
Remove minimize from shadowJar task
The minimize function was removed from the shadowJar task configuration in the build.gradle.kts file. This change is intended to ensure that all dependencies are included in the final jar file.
Configuration menu - View commit details
-
Copy full SHA for f14a87a - Browse repository at this point
Copy the full SHA f14a87aView commit details -
Update dependencies and jar manifest attributes
Upgraded version-checker to 1.2.1 for better compatibility and bug fixes. Changed manifest attribute from 'Version' to 'Implementation-Version' to comply with standard conventions.
Configuration menu - View commit details
-
Copy full SHA for 0845320 - Browse repository at this point
Copy the full SHA 0845320View commit details -
Fix owner in VersionChecker constructor
Updated the owner string in the VersionChecker constructor from "TheNextLvl" to "TheNextLvl-net" to correct a bug in ownership identification.
Configuration menu - View commit details
-
Copy full SHA for 54d87a6 - Browse repository at this point
Copy the full SHA 54d87a6View commit details -
Handle null version with fallback to "0.0.0" in VersionChecker.
Updated the `versionRunning` initialization in `VersionChecker` to use `Objects.requireNonNullElse`. This ensures that if the implementation version is null, it defaults to "0.0.0". This change prevents potential null pointer exceptions.
Configuration menu - View commit details
-
Copy full SHA for aa193cf - Browse repository at this point
Copy the full SHA aa193cfView commit details -
Fix version parsing for strings starting with 'v'
Modified the VersionChecker to handle version strings that start with 'v'. This ensures compatibility with different versioning formats and avoids potential errors during version parsing.
Configuration menu - View commit details
-
Copy full SHA for cf997e7 - Browse repository at this point
Copy the full SHA cf997e7View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for f92534b - Browse repository at this point
Copy the full SHA f92534bView commit details