mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-22 19:08:00 +01:00
Fix javadoc generation on java 11
See https://github.com/gradle/gradle/issues/11182
This commit is contained in:
parent
2b3f7ef54a
commit
8a2f74a603
1 changed files with 4 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue