Last active
November 2, 2020 20:25
-
-
Save bigdaz/c4c25d9a3504d410dbf5d4ce21a94ab7 to your computer and use it in GitHub Desktop.
Gradle 5.x config for Gradle Enterprise
This file contains hidden or 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.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' |
This file contains hidden or 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 hidden or 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
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