1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-06-14 23:54:51 +02: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 }
}
task javadocAll(type: Javadoc) {
def currentJavaVersion = JavaVersion.current()
if (currentJavaVersion.compareTo(JavaVersion.VERSION_1_9) >= 0) {
options.addStringOption("-release", "8");
}
source subprojects.collect {project ->
project.sourceSets.main.allJava }
destinationDir = new File(buildDir, 'javadoc')