semver4j icon indicating copy to clipboard operation
semver4j copied to clipboard

Enable adoption in modularized Java 9 projects

Open nictas opened this issue 5 years ago • 1 comments

Currently, this project can't be used in a modularized Java 9 (or greater) project, because it cannot be required as a module:

module foo {

    requires org.apache.commons.collections4;
    requires com.vdurmont.semver4j; // Does not compile!

}

The easiest way to solve this is to add an automatic module name as I've done in this PR. There's also another way that involves the creation of a module-info.java file, but it also requires the adoption of Java 9 in this project, which is unwise IMO.

More info here: https://blog.joda.org/2018/03/jpms-negative-benefits.html

nictas avatar Sep 02 '20 10:09 nictas

This will be fixed in 2.1.0 in active copy of this lib: https://github.com/semver4j/semver4j

piotrooo avatar Jul 25 '22 19:07 piotrooo