@@ -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
130126task 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