From cd130580efb6df97864465e8aba9e7d03e218529 Mon Sep 17 00:00:00 2001 From: Mathieu Lirzin Date: Sat, 19 Oct 2019 13:30:07 +0000 Subject: [PATCH] =?UTF-8?q?Fixed:=20Make=20=E2=80=98javadoc=E2=80=99=20bui?= =?UTF-8?q?ld=20work=20with=20recent=20Java=20(OFBIZ-11257)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- build.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/build.gradle b/build.gradle index 4b9983262d..6e809777d3 100644 --- a/build.gradle +++ b/build.gradle @@ -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