Update tests for Gradle 8

This commit is contained in:
Daz DeBoer 2023-02-18 13:25:58 -07:00
parent 96015f1e52
commit 6095a76664
No known key found for this signature in database
GPG key ID: DD6B9F0B06683D5D
2 changed files with 16 additions and 21 deletions

View file

@ -21,6 +21,7 @@ if (isTopLevelBuild) {
captureUsingBuildScanPublished(settings.extensions["gradleEnterprise"].buildScan, settings.rootProject, invocationId)
}
// We also need to add hooks in case the plugin is applied but no build scan is published
// The `buildScanPublished` results will NOT be overwritten by these calls
if (useBuildService) {
captureUsingBuildService(settings, invocationId)
} else {
@ -71,9 +72,7 @@ def captureUsingBuildFinished(gradle, invocationId) {
gradle.buildFinished { result ->
def buildResults = new BuildResults(invocationId, gradle, gradle.rootProject)
buildResults.setBuildResult(result)
buildResults.writeToResultsFile(false)
}
}