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

Add means to check if version is a snapshot programatically. #749

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on May 3, 2024

  1. Expose cached DecoratedVersion, and introduce isSnapshot() to Decorat…

    …edVersion
    
    Introduces a method, getDecoratedVersion() in the VersionConfig class, allowing you to easily retrieve the cached decorated version, instead of having to do versionProvider().get(), which looks less nice (imo)
    
    Also introduces a method, isSnapshot() to DecoratedVersion, which allows you to check if the decorated version is a snapshot.
    This is passed the value of VersionContact.isSnapshot().
    This is convenient for checking if a version is a snapshot or not when building the project.
    solonovamax committed May 3, 2024
    Configuration menu
    Copy the full SHA
    1cd4a56 View commit details
    Browse the repository at this point in the history