From 3dfe57ee604dae424724a0539116b7fa44958ccf Mon Sep 17 00:00:00 2001 From: Chris Chestnut Date: Wed, 20 May 2026 13:35:06 +0000 Subject: [PATCH 1/2] Never cache integration and prod tests; always run them so that we dont miss checking for the latest version of our dependencies --- .../firebase-appdistribution-gradle.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/firebase-appdistribution-gradle/firebase-appdistribution-gradle.gradle b/firebase-appdistribution-gradle/firebase-appdistribution-gradle.gradle index fa70afd96e3..7b41945bf45 100644 --- a/firebase-appdistribution-gradle/firebase-appdistribution-gradle.gradle +++ b/firebase-appdistribution-gradle/firebase-appdistribution-gradle.gradle @@ -121,6 +121,10 @@ tasks.withType(KotlinCompile).configureEach { compilerOptions.jvmTarget.set(JvmTarget.JVM_1_8) } +tasks.withType(Test).configureEach { + outputs.upToDateWhen { false } +} + // Write the gradleRunnerTestBuild runtime classpath to a file. This will be used by the Gradle // Runner test build during integration tests task createClasspathManifest { From b806f3b14615d1fdf166ba3150f52becf8ddd098 Mon Sep 17 00:00:00 2001 From: Chris Chestnut Date: Wed, 20 May 2026 19:19:03 +0000 Subject: [PATCH 2/2] Incorporate suggestion on targetted cache busting and comment for readability --- .../firebase-appdistribution-gradle.gradle | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/firebase-appdistribution-gradle/firebase-appdistribution-gradle.gradle b/firebase-appdistribution-gradle/firebase-appdistribution-gradle.gradle index 7b41945bf45..d36201496d9 100644 --- a/firebase-appdistribution-gradle/firebase-appdistribution-gradle.gradle +++ b/firebase-appdistribution-gradle/firebase-appdistribution-gradle.gradle @@ -121,10 +121,6 @@ tasks.withType(KotlinCompile).configureEach { compilerOptions.jvmTarget.set(JvmTarget.JVM_1_8) } -tasks.withType(Test).configureEach { - outputs.upToDateWhen { false } -} - // Write the gradleRunnerTestBuild runtime classpath to a file. This will be used by the Gradle // Runner test build during integration tests task createClasspathManifest { @@ -175,6 +171,10 @@ task integrationTest(type: Test) { description = 'Runs integration tests.' group = 'verification' + // Disable caching because the tests use com.google.firebase.appdistribution.gradle.VersionUtils, + // which fetches the latest version from the internet. + outputs.upToDateWhen { false } + testClassesDirs = sourceSets.integrationTest.output.classesDirs classpath = sourceSets.integrationTest.runtimeClasspath @@ -189,6 +189,10 @@ task prodTest(type: Test) { description = 'Runs prod tests.' group = 'verification' + // Disable caching because the tests use com.google.firebase.appdistribution.gradle.VersionUtils, + // which fetches the latest version from the internet. + outputs.upToDateWhen { false } + testClassesDirs = sourceSets.prodTest.output.classesDirs classpath = sourceSets.prodTest.runtimeClasspath