Support extra Java for IDEs via EXTRA_JAVA_VERSION #678
Labels
eclipse
related to Eclipse IDE
enhancement
New feature or request
intellij
IntelliJ IDE from Jet-Brains
java
related to Java code, the Java Virtual Machine and directly related tooling (OpenJDK, Adoptium)
setup
related to the setup process of devonfw-ide (setup[.bat] and devon ... setup)
update
related to updating software or the entire devonfw-ide
Milestone
In some projects we are forced to develop with older Java versions (e.g. Java8).
On the other hand some tools like e.g. Eclipse and its plugins may already require a newer Java version (e.g. Java11) to work.
For some projects this already results in inconsistencies that cannot be resolved by the project:
The only possible workaround for a project might be to conserve a working eclipse with all required plugins archived as
*.tgz
file and configured as custom-tool or by its own software-repo. However, this will break platform-compatibility or require a large amount of work for the ide admin of that project. The actual idea of devonfw-ide is to automate, make things easier, faster and reduce efforts.Therefore, with this story we should consider the following:
EXTRA_JAVA_VERSION
java
commandlet will assert that it is different fromJAVA_VERSION
and install another Java of that version tosoftware/extras/java
(EXTRA_JAVA_VERSION
) in addition tosoftware/java
(JAVA_VERSION
). Theextras
subfolder will prevent that this extra Java will be automatically added to thePATH
.EXTRA_JAVA_VERSION
is present or thesoftware/extras/java
directory is present, that will be used to launch this IDE.JAVA_HOME
(.../software/java) so also when compiling code and running tests the project will use the regular Java (JAVA_VERSION
).Due to continuous updates and the fact that Eclipse and its ecosystem is unwilling and unable to provide stable (e.g. versioned) plugin Update Sites, I see this as a good solution to prevent the problematic project situation described above.
And if it is not for the update from Java8 to Java11 the same problems will follow from Java11 to Java17 and so forth so I see this story as a reasonable future invest for Java project support.
The text was updated successfully, but these errors were encountered: