Explorar el Código

build:javadoc: use JavaVersion.current().isJava8Compatible()

David Bernard hace 10 años
padre
commit
4bdf682944
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      common.gradle

+ 1 - 1
common.gradle

@@ -37,7 +37,7 @@ javadoc {
     options.author = "true"
     options.use = "true"
     //disable doclint for JDK8, more quiet output
-    if (Double.parseDouble(System.getProperty("java.specification.version")) > 1.7){
+    if (JavaVersion.current().isJava8Compatible()){
         options.addStringOption('Xdoclint:none', '-quiet')
     }
 }