Capture build results when config-cache is enabled

When enabled, the configuration-cache will cause the build to fail when a
`buildFinished` listener is added. Instead, use a BuildService to listen for task
failures and to write the results on build completion.
This commit is contained in:
Daz DeBoer 2022-06-04 22:53:36 -06:00
parent 500607bc35
commit 5203a0b09d
No known key found for this signature in database
GPG key ID: DD6B9F0B06683D5D
5 changed files with 56 additions and 7 deletions

View file

@ -172,6 +172,7 @@ export class GradleStateCache {
const initScriptFilenames = [
'build-result-capture.init.gradle',
'build-result-capture-service.plugin.groovy',
'project-root-capture.init.gradle',
'project-root-capture.plugin.groovy'
]