Skip to content

Commit 9c84ece

Browse files
committed
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`
1 parent 7e3b569 commit 9c84ece

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ subprojects { subproject ->
204204
.include('**/*.xml')
205205
.exclude('**/log4j2-test.xml')
206206
})
207-
outputs.dir('build')
207+
outputs.dir('build/resources')
208208
doLast {
209209
def wrongConfigs = inputs.files.filter {
210210
new XmlParser(false, false)
@@ -223,7 +223,7 @@ subprojects { subproject ->
223223
task updateCopyrights {
224224
onlyIf { !System.getenv('TRAVIS') && !System.getenv('bamboo_buildKey') }
225225
inputs.files(modifiedFiles.filter { f -> f.path.contains(subproject.name) })
226-
outputs.dir('build')
226+
outputs.dir('build/classes')
227227

228228
doLast {
229229
def now = Calendar.instance.get(Calendar.YEAR) as String

0 commit comments

Comments
 (0)