From 2bb85f89884785c50688a18440340b41ff040688 Mon Sep 17 00:00:00 2001 From: nik Date: Tue, 23 Dec 2014 19:25:07 +0300 Subject: [PATCH] build scripts: suppress warnings produced by Java compiler as we don't pay attention to them anyway --- build/scripts/utils.gant | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build/scripts/utils.gant b/build/scripts/utils.gant index fca3be9c9fbb..45a529ff3d23 100644 --- a/build/scripts/utils.gant +++ b/build/scripts/utils.gant @@ -18,6 +18,7 @@ import org.jetbrains.jps.gant.JpsGantTool import org.jetbrains.jps.gant.TeamCityBuildInfoPrinter import org.jetbrains.jps.model.java.JavaSourceRootType +import org.jetbrains.jps.model.java.JpsJavaExtensionService import org.jetbrains.jps.model.module.JpsModule includeTool << JpsGantTool @@ -140,6 +141,10 @@ binding.setVariable("loadProject", { projectBuilder.setupAdditionalLogging(new File("${p("teamcity.build.tempDir", p("java.io.tmpdir"))}/system/build-log/build.log"), p("jps.build.debug.logging.categories", "")) loadProjectFromPath(home) + + def compilerOptions = JpsJavaExtensionService.instance.getOrCreateCompilerConfiguration(project).currentCompilerOptions + compilerOptions.GENERATE_NO_WARNINGS = true + compilerOptions.DEPRECATION = false }) boolean hasSourceRoots(JpsModule module) {