Closed elect86 closed 2 years ago
Hi Giuseppe,
therapi-runtime-javadoc targets Java 7, and doesn't include any module descriptors, so I'm afraid I don't know where the "therapi.runtime.javadoc" module is supposed to come from. Have you asked the scijava developers?
Thanks, David
Hello David,
I guess this could/should be the default module name in case there is no module-info.class
and isn't targetting jdk9+..
Uhm, I can give it a try and see if with a refresh (latest gradle + kts) this works, also I could provide a PR if you interested
Hello Giuseppe,
Apologies for the late response. Did you figure this out? If a change to the library is required, a PR would indeed be welcome.
Thanks, David
Hey,
no problems.
At the end it was a limitation/natural behavior due to the JPMS and Gradle interaction
@dnault
Hello David,
at the end, digging deep, this is how therapi should be use with modules
plugins {
..
id("org.gradlex.extra-java-module-info") version "1.2"
}
extraJavaModuleInfo {
module("com.github.therapi:therapi-runtime-javadoc-scribe", "therapi.runtime.javadoc.scribe", "0.13.0") {
exportAllPackages()
}
module("com.github.therapi:therapi-runtime-javadoc", "therapi.runtime.javadoc", "0.13.0") {
exportAllPackages()
}
}
You may want to add this in the readme
As titled, I'm trying to get therapi-runtime-javadoc working in a Gradle multiproject with JPMS
The problematic module is scijava-discovery-therapi
I added the dependencies as shown on the readme
But at sync I keep getting
The
module-info.java
is the followingIf I click on the
therapi.runtime.javadoc
I do end up in the right dependencyAll the
Default
packages have annotation processing enable as followWhile the Gradle imported has a custom one:
Which I think is fine, but I still cant understand why it cannot find this module..