diff --git a/build.gradle b/build.gradle index afdd4863dcc..63a4f577370 100644 --- a/build.gradle +++ b/build.gradle @@ -39,7 +39,6 @@ plugins { id "io.swagger.core.v3.swagger-gradle-plugin" version "2.2.8" id "com.github.spotbugs" version '5.0.13' apply false - id 'org.gradle.test-retry' version '1.5.2' apply false id 'org.scoverage' version '7.0.1' apply false id 'com.github.johnrengelman.shadow' version '8.1.1' apply false id 'com.diffplug.spotless' version '6.14.0' apply false // 6.14.1 and newer require Java 11 at compile time, so we can't upgrade until AK 4.0 @@ -233,7 +232,6 @@ subprojects { apply plugin: 'java-library' apply plugin: 'checkstyle' apply plugin: "com.github.spotbugs" - apply plugin: 'org.gradle.test-retry' // We use the shadow plugin for the jmh-benchmarks module and the `-all` jar can get pretty large, so // don't publish it diff --git a/settings.gradle b/settings.gradle index 871c57a887c..0f4f7e52d94 100644 --- a/settings.gradle +++ b/settings.gradle @@ -13,6 +13,40 @@ // See the License for the specific language governing permissions and // limitations under the License. +plugins { + id 'com.gradle.enterprise' version '3.13.4' + id 'com.gradle.common-custom-user-data-gradle-plugin' version '1.11' +} + +def isGithubActions = System.getenv('GITHUB_ACTIONS') != null +def isJenkins = System.getenv('JENKINS_URL') != null +def isCI = isGithubActions || isJenkins + +gradleEnterprise { + server = "https://ge.apache.org" + buildScan { + capture { taskInputFiles = true } + uploadInBackground = !isCI + publishAlways() + publishIfAuthenticated() + obfuscation { + // This obfuscates the IP addresses of the build machine in the build scan. + // Alternatively, the build scan will provide the hostname for troubleshooting host-specific issues. + ipAddresses { addresses -> addresses.collect { address -> "0.0.0.0"} } + } + } +} + +buildCache { + local { + enabled = !isCI + } + + remote(gradleEnterprise.buildCache) { + enabled = false + } +} + include 'clients', 'connect:api', 'connect:basic-auth-extension',