Java 9 Modules Support

What is the status of Java 9 modules support in Gradle?

The latest information I can find is 6+ months old, e.g.

Core Java tools already support Java 9: ant, maven, asm etc.

Can we get an ETA / plan / update of some sort on the status of Gradle Java 9 module support?

Thank you,

I found this epic tracking this work on github without any updates in the last 1-2 months from gradle:

This seems like a useful blog with jigsaw resources:

Pasted in the wrong link (java 9 runtime epic instead of jigsaw support epic):

Any update on Java 9 Modules first class support? It has been 8 months since the last post in this thread. In that time Gradle 5 and the Kotlin DSL have been released. Can Java 9 modules support be given priority now. It would be nice to get first class modules support, so our projects can start using new features of JDK 9, 10 and 11.

1 Like

I would also like to see Gradle support Java Modules.

In the mean time the modules plugin works great.

plugins {
    id "org.javamodularity.moduleplugin" version "1.2.1"

mainClassName = "$moduleName/"

With one caveat though:
Javadoc fails when using Log4j
error: module not found: org.apache.logging.log4j

1 Like

There’s no update here to JPMS support from Gradle core right now. Providing this is not on the short-term roadmap, but stayed tuned to Twitter/News for future updates.

In the meantime, use of a plugin that helps out here is the best course of action if you want to use JPMS in your project.

1 Like