blob: 918e83fec09bd844273d0b9f5981d37bcbdb92eb [file] [log] [blame]
plugins {
id "com.gradle.enterprise" version '3.16.2'
id 'com.gradle.common-custom-user-data-gradle-plugin' version '1.13'
}
gradleEnterprise {
server = 'https://ge.grails.org'
buildScan {
publishAlwaysIf(System.getenv('CI') == 'true')
publishIfAuthenticated()
uploadInBackground = System.getenv("CI") == null
capture {
taskInputFiles = true
}
}
}
buildCache {
local { enabled = System.getenv('CI') != 'true' }
remote(HttpBuildCache) {
def isAuthenticated = System.getenv('GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER') && System.getenv('GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY')
push = System.getenv('CI') == 'true' && isAuthenticated
enabled = true
url = 'https://ge.grails.org/cache/'
credentials {
username = System.getenv('GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER')
password = System.getenv('GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY')
}
}
}
rootProject.name = "static-website"