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 a ability to limit versions to Java version #1047

Open
Stwissel opened this issue Feb 8, 2024 · 0 comments
Open

Add a ability to limit versions to Java version #1047

Stwissel opened this issue Feb 8, 2024 · 0 comments

Comments

@Stwissel
Copy link

Stwissel commented Feb 8, 2024

Problem: mvn versions:show-dependency-updates shows newer versions that eventually need a higher Java version and are not compatible with a current project.

Potential solution:
Introduce a configuration setting javaVersion for the versions plugin.

When running the plugin checks the pom of the dependencies for maven.compiler.target (eventually other checks?). When found, compare to the javaVersion and propose an older version if too high (Q: can maven central be queried for a version list?).
When not found, print a warning and propose as is now.

This approach would allow to also use profiles to query for different Java versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants