1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-29 15:52:08 +01:00

Fix javadoc generation on java 11

See https://github.com/gradle/gradle/issues/11182
This commit is contained in:
Paul Schaub 2020-08-30 22:34:29 +02:00
parent 2b3f7ef54a
commit 8a2f74a603
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -235,8 +235,11 @@ task jacocoRootReport(type: JacocoReport) {
setOnlyIf { true } setOnlyIf { true }
} }
task javadocAll(type: Javadoc) { task javadocAll(type: Javadoc) {
def currentJavaVersion = JavaVersion.current()
if (currentJavaVersion.compareTo(JavaVersion.VERSION_1_9) >= 0) {
options.addStringOption("-release", "8");
}
source subprojects.collect {project -> source subprojects.collect {project ->
project.sourceSets.main.allJava } project.sourceSets.main.allJava }
destinationDir = new File(buildDir, 'javadoc') destinationDir = new File(buildDir, 'javadoc')