Juan Farré created MTOOLCHAINS-62:
-------------------------------------
Summary: Allow specifying a preferred version range for the JDK
Key: MTOOLCHAINS-62
URL: https://issues.apache.org/jira/browse/MTOOLCHAINS-62
Project: Maven Toolchains Plugin
Issue Type: Improvement
Affects Versions: 3.2.0
Reporter: Juan Farré
As a user of the plugin, I would like to be able to specify a preferred version
range for the JDK.
Currently, it's possible to specify an absolute version range (no JDK will be
selected outside of it).
Let's say my project is designed for Java 17. Now imagine two users:
User A has two JDKs with versions 17 and 21.
User B has a JDK version 21.
If I specify the range [17,), the JDK 21 will be selected for user A, while I
would prefer the exact match.
If I specify the range [17,18), this will be too restrictive for user B, who
must install an additional JDK.
I want to be able to specify the range [17,) and then also a preferred range of
[17,28). It could be the first criterion in the comparator to select an
autodetected JDK.
With this setup, JDK 17 would be selected for user A and JDK 21 would be
selected for user B.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)