Last active
November 2, 2020 20:24
-
-
Save bigdaz/5bc32571373003efcb804d25a3e7be4e to your computer and use it in GitHub Desktop.
Gradle 6.x config for Gradle Enterprise
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
org.gradle.caching=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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