Preview APIs in the Java Platform
Mark Derricutt
mark at talios.com
Mon Mar 9 02:51:25 UTC 2020
On 5 Mar 2020, at 21:18, Remi Forax wrote:
> So as a user it means once you use a preview API, you can not re-distribute your work, you can not by example upload such jar on Maven Central
I'd say in part this isn't all that much different than the problems one faces already with Maven Central. If you release your library compiled for release 11/12/13/14 (or 8 back in the day when it was new) then users of those dependencies will get broken, and you have to rerelease or find some other solution.
The Maven model/pom files have no means to express JVM version in their dependencies other than using a classifier. Or one could go, with tooling support the direction sbt in scala went with a version numbering scheme ontop of mavens that included the JDK.
Using a classifier might be the simplest means - such as `com.example.foolib-1.2-previewjdk14`.
Mark
---
"The ease with which a change can be implemented has no relevance at all to whether it is the right change for the (Java) Platform for all time." — Mark Reinhold.
Mark Derricutt
http://www.chaliceofblood.net
http://www.theoryinpractice.net
http://twitter.com/talios
http://facebook.com/mderricutt
More information about the jdk-dev
mailing list