From f3cd1dbde36d8fd85bd2e87dcfaffc8b03eec87c Mon Sep 17 00:00:00 2001 From: Tomoko Uchida Date: Fri, 7 Feb 2020 01:36:45 +0900 Subject: [PATCH] LUCENE-9077: Force locale en_US on Javadoc task (workaroud for JDK-8222793) --- gradle/defaults-javadoc.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/gradle/defaults-javadoc.gradle b/gradle/defaults-javadoc.gradle index 41046b6f889..13de9e0b0d6 100644 --- a/gradle/defaults-javadoc.gradle +++ b/gradle/defaults-javadoc.gradle @@ -22,6 +22,7 @@ allprojects { tasks.matching { it.name == "javadoc" }.all { StandardJavadocDocletOptions opts = (options as StandardJavadocDocletOptions) opts.locale("en_US") + opts.setJFlags(["-Duser.language=en", "-Duser.country=US"]) opts.charSet = "UTF-8" opts.encoding = "UTF-8" opts.docEncoding = "UTF-8"