Closed DJViking closed 6 years ago
Encountered this problem too when testing out this plugin with the aalmiray/ikonli build. Resorted to the following
suprojects { subproj ->
afterEvaluate {
javadoc {
inputs.property('moduleName', subproj.moduleName)
doFirst {
options.addStringOption('-module-path', classpath.asPath)
classpath = files()
}
}
}
}
First part of a fix in this PR: #20. Still wouldn't fix the problem for @DJViking, because we need a way to specify extra modules. I'm considering adding dsl syntax for this, such as:
addModules: [
'module1', 'module2'
]
}
Fixed with #20 and #21
I have now tried to run with 1.1.1 of the plugin Getting this error. The other errors are gone.
> Task :javadoc FAILED
/home/sverre/workspace/movies/src/main/java/module-info.java:12: error: module not found:
org.apache.logging.log4j
requires org.apache.logging.log4j;
Is the org.apache.logging.log4j
module configured as a dependency?
Yes,
build.gradle
apply from: rootProject.file('dependencies.gradle')
dependencies.gradle
final def log4jGroup = 'org.apache.logging.log4j'
final def log4jVersion = '2.11.1'
dependencies {
compile group: log4jGroup, name: 'log4j-api', version: log4jVersion
compile group: log4jGroup, name: 'log4j-core', version: log4jVersion
compile group: 'com.lmax', name: 'disruptor', version:'3.3.7'
}
module-info.java
requires org.apache.logging.log4j;
Will #34 fix this last remaining problem?
That's already merged in the last release, so if you're using that and it still doesn't work, there's another problem. If so, feel free to reopen this.
I am using v1.1.1. The #34 was merged in after and there is no v1.1.2 available.
Tried now with the latest v1.2.0, but getting same problem
Task :javadoc FAILED /home/sverre/workspace/movies/src/main/java/module-info.java:12: error: module not found: org.apache.logging.log4j requires org.apache.logging.log4j;
The Log4j is a multi version JAR with the module-info.class within META-INF/versions/9
I'm facing a very similar problem:
[...]\src\main\java\module-info.java:3: error: module not found: net.bytebuddy requires net.bytebuddy;
ByteBuddy is also a multi release jar with the module-info.class inside META-INF/versions/9
Could you please re-open this issue and have another look at it?
This plugin does not work when building with Javadoc
build.gradle
Without this plugin I have a modules.gradle with the following Javadoc configuration: