Skip to content

Instantly share code, notes, and snippets.

@aalmiray
Created December 10, 2019 19:03
Show Gist options
  • Save aalmiray/b28578cb47a8821594c0d46cdd51e57b to your computer and use it in GitHub Desktop.
Save aalmiray/b28578cb47a8821594c0d46cdd51e57b to your computer and use it in GitHub Desktop.
buildscript {
repositories {
jcenter()
gradlePluginPortal()
}
dependencies {
classpath 'org.kordamp.gradle:oci-gradle-build-cache-plugin:0.3.0'
}
}
apply plugin: 'org.kordamp.gradle.oci-build-cache'
ext.isCiServer = System.getenv().containsKey('CI')
buildCache {
local {
enabled = !isCiServer
}
remote(org.kordamp.gradle.plugin.buildcache.OCIBuildCache) {
configFile = '.oci/config'
compartmentId = System.getenv()['compartmentId'] ?: '**bogus**'
push = isCiServer
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment