archimatetool / archi

Archi: ArchiMate Modelling Tool
https://www.archimatetool.com
MIT License
916 stars 267 forks source link

[Archi 5] Move to Java 17 #867

Closed Phillipus closed 1 year ago

Phillipus commented 1 year ago

Archi is currently targeted toward Java 11 (LTS) and ships with a bundled version of JRE 11. It seems that some Eclipse projects are now moving toward a minimum of Java 17 so it's inevitable that we will have to move to 17 as well at some point.

Java 17 does not include Nashorn which is one of the scripting engines in jArchi. Options will be:

  1. Remove the preference options for Nashorn and use GraalVM only
  2. Ship stand-alone Nashorn with jArchi - https://github.com/openjdk/nashorn/

Option (2) can be done, but adds more dependencies to jArchi. Maybe we should make this clear now and drop Nashorn?

Phillipus commented 1 year ago

Some references to Eclipse using Java 17:

https://github.com/eclipse-platform/.github/wiki/PMC-Meeting-minutes#august-10-2022---mq-jay-alex-tom-lars

https://github.com/eclipse-platform/eclipse.platform.swt/discussions/175#discussioncomment-2832777

https://github.com/eclipse-m2e/m2e-core/discussions/891

Phillipus commented 1 year ago

We have to move to Java 17 to support the latest Eclipse features and build from Tycho. I'll ensure that jArchi has an optional stand-alone Nashorn bundle.

Aiming for Archi 5.