tindzk / seed

Build tool for Scala projects
https://tindzk.github.io/seed/
Apache License 2.0
238 stars 13 forks source link

Question: Are seeds modules also Java 9 Modules? #75

Open PhilAndrew opened 4 years ago

PhilAndrew commented 4 years ago

Java 9 modules place certain information into a JAR to express this new module standard, does seed automatically output Java 9 module JARS? Or is the module concept only between the projects themselves involved in builds?

tindzk commented 4 years ago

Thanks for the question. When creating a JAR with seed package base, it will include all .class files of base and its transitive module dependencies. Thus, the concept of modules does not extend to JAR files yet.

Currently, I am adding support for publishing individual modules to Bintray. Similarly, we could a new CLI command to generate separate JAR files for all modules and emit any information required for Java 9 compatibility.

Which information needs to be placed in the JAR files for the new module system? I found this issue. It appears that Scala does not support Java's module system yet.