DEV Community

Discussion on: Report about updating a Java project from JDK 8 to JDK 11

Collapse
 
martinhaeusler profile image
Martin Häusler

Did the module system get in your way during the migration? I heard that there are some issues, especially with reflection-heavy packages such as hibernate.

Collapse
 
janux_de profile image
Jan Mewes • Edited

But I had problems with the module system 9 month ago, when I evaluated the JPMS vs. Maven submodules vs. Gradle multi-project builds.

See this question on Stackoverflow which is still unanswered:

stackoverflow.com/questions/507872...

It was triggered by dependencies in the Spring framework which didn't like the JPMS constraints.

Collapse
 
singhsbgit profile image
singhsb-git • Edited

Hey,
I am trying to migrate from java 8 to 11 with gradle 7.5 version... I am getting error for the below grade command. Looks like install command does not work for cradle 7.5... is there a workaround or other commands that I could use for install

Command:
install.dependsOn createDir

Error:
Could not get unknown property 'install'

Collapse
 
janux_de profile image
Jan Mewes • Edited

No, I didn't experience any problems with the module system. At the moment, I have no intention to use the module path since Gradle multi-project builds in combination with the java-library plug-in seemed to be more suitable for our use-case. So all the libraries are still on the classpath. I guess this circumvents all problems with the JPMS.

Given that Java 9 was released September 2017, I assume that all common, actively developed frameworks and libraries have a solution for API calls which are not allowed anymore. Did you hear of any concrete problem with Hibernate, apart from adding the libraries javax.xml.bind:jaxb-api and org.glassfish.jaxb:jaxb-runtime which are not part of the JDK anymore?