HannesWell opened a new issue, #142: URL: https://github.com/apache/maven-toolchains-plugin/issues/142
### New feature, improvement proposal The existing [`version`](https://maven.apache.org/plugins/maven-toolchains-plugin/select-jdk-toolchain-mojo.html#version) parameter of the `select-jdk-toolchain` goal current requires one to specify a version range or an exact version. As far as I can tell it's not possible to specify just the desired major version. If I want to have any JDK-21 (but only 21) I have to specify the version as `[21,22)`. This is easy for hard-coded versions, but if the version is derived from another parameter (e.g. `maven.compiler.release`), then one needs to start calculating in the configuration and that's not trivial with Maven. Therefore my proposal is to introduce something like a `majorVersion` parameter that expects an integer number and is internally translated into a version requirement of `[${majorVersion},${majorVersion+1})`. If you agree I can provide a PR for it. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
