Skip to content

Remove support for -v option#5980

Open
kwvanderlinde wants to merge 1 commit into
RPTools:developfrom
kwvanderlinde:refactor/5973-environment-and-version-inside-jar
Open

Remove support for -v option#5980
kwvanderlinde wants to merge 1 commit into
RPTools:developfrom
kwvanderlinde:refactor/5973-environment-and-version-inside-jar

Conversation

@kwvanderlinde

@kwvanderlinde kwvanderlinde commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

Identify the Bug or Feature request

Resolves #5973

Description of the Change

This removes support for the -v command line option that overrides the built-in version. The option itself is still registered (so that existing scripts can run new JARs), but a warning is logged to explain that the version number is no longer respected.

This has one change in behaviour for development runs (e.g., gradlew run). Tthe splash screen will now show the version as "DEVELOPMENT" rather than "0.0.1" since it is no longer provided in the application arguments and there is no JAR manifest from which to pull a Implementation-Version.

Possible Drawbacks

Can't directly control the version details anymore.

Documentation Notes

The -v command line option no longer has an effect.

Release Notes

  • Removed support for the -v command line parameter.

This change is Reviewable

The flag is still defined so the application can start with existing command line options that specific the version.
However, a warning will be logged, and the provided version number will be ignored.
@kwvanderlinde kwvanderlinde self-assigned this Jun 18, 2026
@github-actions github-actions Bot added the code-maintenance Adding/editing javadocs, unit tests, formatting. label Jun 18, 2026
@kwvanderlinde kwvanderlinde moved this from Todo to Awaiting-Review in MapTool 1.19 Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code-maintenance Adding/editing javadocs, unit tests, formatting.

Projects

Status: Awaiting-Review

Development

Successfully merging this pull request may close these issues.

[Maintenance]: Include environment and version information inside the JAR file

1 participant