From c4fe2df923b2c394a356f17ba851595e6401a56f Mon Sep 17 00:00:00 2001 From: Satoshi Qazi Muhammed Date: Sat, 13 Jun 2026 09:12:46 -0700 Subject: [PATCH] fix(build): declare resource-task deps for google-services bind task MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit bindDevelopGithubGoogleServicesToRelease writes into src/develop, which generate/mergeDevelopResources read — Gradle 8.9 fails on the implicit dependency. Add generate/mergeResources to the bind task's dependents (null-safe via findByName). --- app/build.gradle | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index d7ec954..403e2cb 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -162,11 +162,16 @@ void createBindReleaseFileTask(String destination) { "merge${capitalizedDestination}JniLibFolders".toString(), "merge${capitalizedDestination}StartupProfile".toString(), "merge${capitalizedDestination}Shaders".toString(), - "merge${capitalizedDestination}ArtProfile".toString() + "merge${capitalizedDestination}ArtProfile".toString(), + // The bind task writes into src/, which resource tasks read — + // declare the dependency so Gradle 8.9 doesn't fail on implicit ordering. + "generate${capitalizedDestination}Resources".toString(), + "merge${capitalizedDestination}Resources".toString() ] dependentTasks.forEach { - tasks.getByName(it).dependsOn(task) + def t = tasks.findByName(it) + if (t != null) t.dependsOn(task) } } }