Minres / CoreDSL

Xtext project to parse CoreDSL files
Apache License 2.0
16 stars 3 forks source link

Lift JVM version requirements in Maven build #33

Closed jopperm closed 2 years ago

jopperm commented 2 years ago

Due to a transitive dependency on an old Eclipse component, the Maven build only succeeds on a Java 11 VM, which is an LTS version, but still so old that support will end September 2023. As this is purely a metadata issue and the project itself is fine with newer VMs, we should fix the build to be compatible at least with Java 17, with is the next LTS version and will be supported until 2026.

[INFO] Resolving dependencies of MavenProject: com.minres.coredsl:com.minres.coredsl:2.0.2-SNAPSHOT @ /Users/julian/Git/CoreDSL/com.minres.coredsl/pom.xml
[ERROR] Cannot resolve target definition:
[ERROR]   Software being installed: org.eclipse.jdt.feature.group 3.18.400.v20200604-0540
[ERROR]   Missing requirement: org.eclipse.ant.core 3.5.700.v20191221-1203 requires 'osgi.ee; (&(osgi.ee=JavaSE)(version=1.8))' but it could not be found
[ERROR]   Cannot satisfy dependency: org.eclipse.ant.ui 3.7.800.v20200413-1643 depends on: osgi.bundle; org.eclipse.ant.core [3.2.0,4.0.0)
[ERROR]   Cannot satisfy dependency: org.eclipse.jdt.feature.group 3.18.400.v20200604-0540 depends on: org.eclipse.equinox.p2.iu; org.eclipse.ant.ui [3.7.800.v20200413-1643,3.7.800.v20200413-1643]
eyck commented 2 years ago

I upgraded the infrastructure to the latest XText version (2.26). The build is now compatible with Java 17. Additionaly I added a gradle build flow for the non-ecöipse plugins (Tycho and hence Maven is needed for the eclipse build). This means com.minre.coredsl can be built using mvn as well as gradle. The com.minre.coredsl.test, com.minre.coredsl.ide, and com.minre.coredsl.web projects are gradle only.