fix(build): declare resource-task deps for google-services bind task

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).
This commit is contained in:
2026-06-13 09:12:46 -07:00
parent 4361230c47
commit c4fe2df923
+7 -2
View File
@@ -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/<dest>, 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)
}
}
}