Explorar o código

build: quick fix to run javadoc with jdk < 1.8

David Bernard %!s(int64=10) %!d(string=hai) anos
pai
achega
23f5b3ad01
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      common.gradle

+ 3 - 1
common.gradle

@@ -37,7 +37,9 @@ javadoc {
     options.author = "true"
     options.use = "true"
     //disable doclint for JDK8, more quiet output
-    options.addStringOption('Xdoclint:none', '-quiet')
+    if (Double.parseDouble(System.getProperty("java.specification.version")) > 1.7){
+        options.addStringOption('Xdoclint:none', '-quiet')
+    }
 }
 
 task sourcesJar(type: Jar, dependsOn: classes, description: 'Creates a jar from the source files.') {