Where's the module-info.java file?
See original GitHub issueAdd a module descriptor to the root of the JUnit Pioneer JAR file. Something like:
module org.junitpioneer {
exports ...
requires ...
}
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Where to place module-info.java using Java 9?
Place module declaration ( module-info.java ) into the project's source root directory (e.g. src/main/java ). It must be among the list of files ......
Read more >The package-info.java File
The package-info.java file currently serves two purposes: A place for package-level documentation; Home for package-level annotations. Other ...
Read more >Java 9 Modules Cheat Sheet | JRebel & XRebel by Perforce
To declare a jar file as a named Java module, one needs to provide a module-info.class file, which is, naturally, compiled from a...
Read more >Kotlin Support for Java 9 Module System?
You'll be able to create a module in Kotlin; the module-info file will have to remain in Java (because it's ... So where...
Read more >Understanding Java 9 Modules
In this article, I introduce the Java 9 Platform Module System (JPMS), ... version of a module declaration that's defined in a file...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Still not convinced module declarations make too much sense for test code, but since it doesn’t appear to hurt anyone (I infer from JUnit 5 having them for quite some time now), we can look into this.
Regarding the build, it appears easiest to me to make Java 11 the default/release build (with
--release 8
) and turn Java 8 into a “compatibility build” (like 14) where we excludemodule-info.java
.Or use https://github.com/moditect/moditect