Skip to content

Instantly share code, notes, and snippets.

@bigdaz
Last active November 2, 2020 20:24
Show Gist options
  • Save bigdaz/5bc32571373003efcb804d25a3e7be4e to your computer and use it in GitHub Desktop.
Save bigdaz/5bc32571373003efcb804d25a3e7be4e to your computer and use it in GitHub Desktop.
Gradle 6.x config for Gradle Enterprise
// Copy the following file to 'gradle/build-scan-user-data.gradle'
// https://github.com/gradle/gradle-enterprise-build-config-samples/blob/master/common-custom-user-data-gradle-script/common-custom-user-data.gradle
apply from: 'gradle/build-scan-user-data.gradle'
org.gradle.caching=true
plugins {
id "com.gradle.enterprise" version "3.5"
}
gradleEnterprise {
server = "https://localhost"
allowUntrustedServer = true
buildScan {
publishAlways()
captureTaskInputFiles = true
}
}
boolean isCiServer = System.getenv().containsKey("CI")
buildCache {
local {
enabled = !isCiServer
}
remote(HttpBuildCache) {
url = "https://localhost/cache/"
allowUntrustedServer = true
push = isCiServer
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment