Skip to content

Instantly share code, notes, and snippets.

@bigdaz
Last active November 2, 2020 20:25
Show Gist options
  • Save bigdaz/c4c25d9a3504d410dbf5d4ce21a94ab7 to your computer and use it in GitHub Desktop.
Save bigdaz/c4c25d9a3504d410dbf5d4ce21a94ab7 to your computer and use it in GitHub Desktop.
Gradle 5.x config for Gradle Enterprise
plugins {
id "com.gradle.build-scan" version "3.5"
}
gradleEnterprise {
server = "https://localhost"
allowUntrustedServer = true
buildScan {
publishAlways()
captureTaskInputFiles = true
}
}
// 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
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