| plugins { |
| id 'com.gradle.develocity' version '3.19.1' |
| id 'com.gradle.common-custom-user-data-gradle-plugin' version '2.1' |
| } |
| |
| def isCI = System.getenv('CI') != null |
| def isLocal = !isCI |
| def isAuthenticated = System.getenv('DEVELOCITY_ACCESS_KEY') != null |
| |
| develocity { |
| server = 'https://ge.grails.org' |
| buildScan { |
| publishing.onlyIf { isAuthenticated } |
| uploadInBackground = isLocal |
| } |
| } |
| |
| buildCache { |
| local { enabled = isLocal } |
| remote(develocity.buildCache) { |
| push = isCI && isAuthenticated |
| enabled = true |
| } |
| } |
| |
| rootProject.name = 'geb' |