build-cache-settings.gradle 411 B

123456789101112131415161718
  1. buildCache {
  2. local {
  3. enabled = true
  4. }
  5. remote(HttpBuildCache) {
  6. enabled = true
  7. url = 'https://ge.spring.io/cache/'
  8. def cacheUsername = System.getenv('GRADLE_ENTERPRISE_CACHE_USERNAME')
  9. def cachePassword = System.getenv('GRADLE_ENTERPRISE_CACHE_PASSWORD')
  10. if (cacheUsername && cachePassword) {
  11. push = true
  12. credentials {
  13. username = cacheUsername
  14. password = cachePassword
  15. }
  16. }
  17. }
  18. }