Closed CedricGatay closed 8 years ago
@gregw @joakime you know why docker images would change the JDK versioning ?
Reference: http://www.oracle.com/technetwork/java/javase/versioning-naming-139433.html
If it is official, then it must not contain the -
character.
I have opened an issue on docker-java asking about this. However, I think it would be best to apply this patch so that we can run against internal versions if need be.
@CedricGatay please:
1.8.0
or 1.9.0-ea
, so can you please change it to be:private static final Pattern VERSION_PATTERN =
Pattern.compile("^([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:_([0-9]+))?(?:-.+)?$");
I made 2 changes: the first is to make the "patch" group optional (the ?
was wrongly placed), and widened the "identifier" group (the one you added), as we don't need a capturing group for that, and we want to allow any char to avoid to have to change it in the future if someone puts in some weird char in the identifier.
git commit --signoff
.
Make sure that you can certify what stated in the Developer Certificate of Origin; if you can, signoff your commit to confirm that you can certify the DCO.@sbordet I made the changes you required as well as signed off my commit. Thank you for your feedback !
Hi @sbordet do you have an ETA for a release including this (the 2.0.1 I guess). Do I need to do an internal release to my nexus or can I expect a "public" one anytime soon ? Thank you
@CedricGatay Release 2.0.1 is out (may take a few hours to be in Maven Central).
Thank you @sbordet !
"Official" docker images presents java version under the form x.y.z_k-internal, which fails java version detection. By applying this patch, we are going from :
To