Explorar el Código

Use Java 8 Toolchain for modules

Issue gh-10816
Marcus Da Coregio hace 3 años
padre
commit
4631375270
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  1. 7 0
      build.gradle

+ 7 - 0
build.gradle

@@ -138,6 +138,13 @@ allprojects {
 			}
 		}
 	}
+
+	tasks.withType(JavaCompile).configureEach {
+		javaCompiler = javaToolchains.compilerFor {
+			languageVersion = JavaLanguageVersion.of(8)
+		}
+	}
+
 }
 
 if (hasProperty('buildScan')) {