Fixed: Make ‘javadoc’ build work with recent Java
(OFBIZ-11257) With a recent OpenJDK release we had the following error ``` > Task :javadoc javadoc: error - The code being documented uses modules but the packages defined in https://docs.oracle.com/javase/8/docs/api/ are in the unnamed module. javadoc: error - The code being documented uses modules but the packages defined in https://docs.oracle.com/javaee/7/api/ are in the unnamed module. [...] 2 errors 100 warnings > Task :javadoc FAILED ``` With ‘javadoc --source 8’ this error disappears as described in JDK-8212233 [1]. [1] https://bugs.openjdk.java.net/browse/JDK-8212233 git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868622 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -90,6 +90,7 @@ distributions.main.contents.from(rootDir) {
|
||||
javadoc {
|
||||
failOnError = true
|
||||
options {
|
||||
source '8'
|
||||
encoding 'UTF-8'
|
||||
charSet 'UTF-8'
|
||||
// Those external Javadoc links should correspond to the actual
|
||||
|
||||
Reference in New Issue
Block a user