From 9c84eceec2469eddc773703d8274345d93dff15d Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Thu, 21 Feb 2019 19:04:32 -0500 Subject: [PATCH] Optimize updateCopyrights, checkTestConfigs tasks * The Gradle `checkTestConfigs` task deals only with resources, so narrowing its `outputs` to the `build/resources` * The Gradle `updateCopyrights` tasks deals only with compiled classes, so narrowing its `outputs` to the `build/classes` --- build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 08b133da40..50b10637c0 100644 --- a/build.gradle +++ b/build.gradle @@ -204,7 +204,7 @@ subprojects { subproject -> .include('**/*.xml') .exclude('**/log4j2-test.xml') }) - outputs.dir('build') + outputs.dir('build/resources') doLast { def wrongConfigs = inputs.files.filter { new XmlParser(false, false) @@ -223,7 +223,7 @@ subprojects { subproject -> task updateCopyrights { onlyIf { !System.getenv('TRAVIS') && !System.getenv('bamboo_buildKey') } inputs.files(modifiedFiles.filter { f -> f.path.contains(subproject.name) }) - outputs.dir('build') + outputs.dir('build/classes') doLast { def now = Calendar.instance.get(Calendar.YEAR) as String