Skip to content
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

Merged
merged 10 commits into from
Oct 2, 2024
Merged

Version checker #16

merged 10 commits into from
Oct 2, 2024

Commits on Oct 2, 2024

  1. 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.
    NonSwag committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    1fdf603 View commit details
    Browse the repository at this point in the history
  2. 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.
    NonSwag committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    2680d27 View commit details
    Browse the repository at this point in the history
  3. 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.
    NonSwag committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    63d3423 View commit details
    Browse the repository at this point in the history
  4. 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.
    NonSwag committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    12f0ef8 View commit details
    Browse the repository at this point in the history
  5. 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.
    NonSwag committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    f14a87a View commit details
    Browse the repository at this point in the history
  6. 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.
    NonSwag committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    0845320 View commit details
    Browse the repository at this point in the history
  7. 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.
    NonSwag committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    54d87a6 View commit details
    Browse the repository at this point in the history
  8. 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.
    NonSwag committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    aa193cf View commit details
    Browse the repository at this point in the history
  9. 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.
    NonSwag committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    cf997e7 View commit details
    Browse the repository at this point in the history
  10. 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.
    NonSwag committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    f92534b View commit details
    Browse the repository at this point in the history