13
0
geforkt von Mirrors/Velocity

Merge pull request #405 from zml2008/fix/jd-search

build: Fix search when generating Javadoc with broken java versions
Dieser Commit ist enthalten in:
Andrew Steinborn 2020-12-21 15:19:10 -05:00 committet von GitHub
Commit ce34a8c1b5
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -96,6 +96,11 @@ javadoc {
// Mark sources as Java 8 source compatible // Mark sources as Java 8 source compatible
options.source = '8' options.source = '8'
// Remove 'undefined' from seach paths when generating javadoc for a non-modular project (JDK-8215291)
if (JavaVersion.current() >= JavaVersion.VERSION_1_9 && JavaVersion.current() < JavaVersion.VERSION_12) {
options.addBooleanOption('-no-module-directories', true)
}
} }
test { test {