Gradle with java modules

not-a-bug

(Jérémie Guidoux) #1

Hi,

I was looking how to build java9 project with modules with gradle.
I red this article : https://guides.gradle.org/building-java-9-modules/
First, thanks for this article, it was really helpful,
But for me, with gradle 4.6, it is still complex to add the java9 module feature with gradle.
Of course, there is the ‘org.gradle.java.experimental-jigsaw’ plugin which simplify things a lot.
But, it is written that it is an experimental plugin and we should not use it in production.

So, my question is, will the next versions of gradle will simplify it ?
Apparently (I didn’t try), maven react quiclyt this time, and we only have to use a recent version of the maven-compiler plugin.

For me, the best will be that in the next version of gradle, we have nothing to do (or maybe specify we use java9 or above with sourceCompatibility and targetCompatibility)

Thanks