Skip to content

Instantly share code, notes, and snippets.

@cdsap
Created April 15, 2020 01:33
Show Gist options
  • Save cdsap/e4fa54548d669048793ac94a81be5fac to your computer and use it in GitHub Desktop.
Save cdsap/e4fa54548d669048793ac94a81be5fac to your computer and use it in GitHub Desktop.
settings.gradle
buildscript {
repositories {
mavenLocal()
maven {
url 'https://plugins.gradle.org/m2/'
}
}
dependencies {
classpath 'gradle.plugin.net.idlestate:gradle-redis-build-cache:1.2.1'
}
}
plugins {
id 'com.gradle.enterprise' version '3.0'
}
gradleEnterprise {
buildScan {
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
termsOfServiceAgree = 'yes'
}
}
buildCache {
local {
enabled = false
}
registerBuildCacheService(net.idlestate.gradle.caching.RedisBuildCache.class,
net.idlestate.gradle.caching.RedisBuildCacheServiceFactory.class)
remote( net.idlestate.gradle.caching.RedisBuildCache.class ) {
host = 'IP'
port = 6379
enabled = true
push = true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment