Skip to content

Commit b806f3b

Browse files
author
Chris Chestnut
committed
Incorporate suggestion on targetted cache busting and comment for readability
1 parent 3dfe57e commit b806f3b

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

firebase-appdistribution-gradle/firebase-appdistribution-gradle.gradle

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,6 @@ tasks.withType(KotlinCompile).configureEach {
121121
compilerOptions.jvmTarget.set(JvmTarget.JVM_1_8)
122122
}
123123

124-
tasks.withType(Test).configureEach {
125-
outputs.upToDateWhen { false }
126-
}
127-
128124
// Write the gradleRunnerTestBuild runtime classpath to a file. This will be used by the Gradle
129125
// Runner test build during integration tests
130126
task createClasspathManifest {
@@ -175,6 +171,10 @@ task integrationTest(type: Test) {
175171
description = 'Runs integration tests.'
176172
group = 'verification'
177173

174+
// Disable caching because the tests use com.google.firebase.appdistribution.gradle.VersionUtils,
175+
// which fetches the latest version from the internet.
176+
outputs.upToDateWhen { false }
177+
178178
testClassesDirs = sourceSets.integrationTest.output.classesDirs
179179
classpath = sourceSets.integrationTest.runtimeClasspath
180180

@@ -189,6 +189,10 @@ task prodTest(type: Test) {
189189
description = 'Runs prod tests.'
190190
group = 'verification'
191191

192+
// Disable caching because the tests use com.google.firebase.appdistribution.gradle.VersionUtils,
193+
// which fetches the latest version from the internet.
194+
outputs.upToDateWhen { false }
195+
192196
testClassesDirs = sourceSets.prodTest.output.classesDirs
193197
classpath = sourceSets.prodTest.runtimeClasspath
194198

0 commit comments

Comments
 (0)