blob: 8e8662cf09f55b0d5811dbdcff9d5e9d853e620d [file]
plugins {
id 'com.gradle.develocity' version '3.19'
id 'com.gradle.common-custom-user-data-gradle-plugin' version '2.0.2'
}
def isCI = System.getenv('CI') != null
def isLocal = !isCI
def isAuthenticated = System.getenv('GRAILS_DEVELOCITY_ACCESS_KEY') != null
develocity {
server = 'https://ge.grails.org'
buildScan {
tag('grails')
tag('grails-gsp')
publishing.onlyIf { isAuthenticated }
uploadInBackground = isLocal
}
}
buildCache {
local { enabled = isLocal }
remote(develocity.buildCache) {
push = isCI && isAuthenticated
enabled = true
}
}
rootProject.name = 'grails-cache'
include 'docs'
include 'example'
include 'plugin'