diff --git a/gradle/validation/ecj-lint.gradle b/gradle/validation/ecj-lint.gradle index a8f7e282cfa..398c26e10be 100644 --- a/gradle/validation/ecj-lint.gradle +++ b/gradle/validation/ecj-lint.gradle @@ -63,7 +63,9 @@ allprojects { args += [ "-d", "none" ] // Compilation environment. - args += [ "--release", project.java.targetCompatibility ] + // we use -source/-target as it is significantly faster than --release + args += [ "-source", project.java.sourceCompatibility ] + args += [ "-target", project.java.targetCompatibility ] args += [ "-encoding", "UTF-8"] args += [ "-proc:none" ] args += [ "-nowarn" ] diff --git a/gradle/validation/ecj-lint/ecj.javadocs.prefs b/gradle/validation/ecj-lint/ecj.javadocs.prefs index 0bad87528d7..a5352aa1971 100644 --- a/gradle/validation/ecj-lint/ecj.javadocs.prefs +++ b/gradle/validation/ecj-lint/ecj.javadocs.prefs @@ -101,7 +101,9 @@ org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled org.eclipse.jdt.core.compiler.problem.suppressWarningsNotFullyAnalysed=error org.eclipse.jdt.core.compiler.problem.syntacticNullAnalysisForFields=disabled org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore -org.eclipse.jdt.core.compiler.problem.terminalDeprecation=error +# Ignore terminal deprecation, allowing this tool to run faster. +# we can just let javac do this check instead! +org.eclipse.jdt.core.compiler.problem.terminalDeprecation=ignore org.eclipse.jdt.core.compiler.problem.typeParameterHiding=error org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=error