jai-imageio / jai-imageio-jpeg2000

JPEG2000 support for Java Advanced Imaging Image I/O Tools API
Other
73 stars 56 forks source link

Fix invalid version error for maven dependency #30

Closed immortaleeb closed 3 years ago

immortaleeb commented 4 years ago

Certain versions of maven fail to include this jar as a dependency because they can't parse the version string [1.8,. Those builds fail with the following error:

Unable to resolve artifact: Unable to get dependency information: Unable to read the metadata file for artifact 'com.github.jai-imageio:jai-imageio-jpeg2000:jar': Invalid JDK version in profile 'java8-and-higher': Unbounded range: [1.8, for project com.github.jai-imageio:jai-imageio-jpeg2000

To fix this I replaced the version string by [1.8,).

Note that we also needed to update to jai-image-io version 1.4.0 because 1.3.x contains the same issue.

Also see jai-imageio/jai-imageio-core#23

stain commented 3 years ago

Closing as pom.xml no longer uses <profile> for Java 1.8 which should by now be a reasonable minimum for build.