GitXplorerGitXplorer
S

GCSCache

public
0 stars
0 forks
6 issues

Commits

List of commits on branch master.
Verified
a57f9168c7a067370733250a1c5f1ebae9a507b8

Merge pull request #1 from StefMa/ci

SStefMa committed 7 years ago
Unverified
9da7a27cd60bccc2a3df17a2b72119ae9336bf1e

Add ci badge

SStefMa committed 7 years ago
Unverified
e23605154fae77068ffb81b2aa13833961079e3c

Add circleci

SStefMa committed 7 years ago
Verified
60d7c5147848ccc1e318a27419bffa833393635e

Update README

SStefMa committed 7 years ago
Unverified
8c5616fbf0baaa72ed26661b5b0717d99ceb9565

Init commit

SStefMa committed 7 years ago

README

The README file for this repository.

CircleCI License

GCSCache

A custom Gradle Build Cache implementation which uses Google Cloud Storage to store the cacheable artifacts.

Description

Haven't heard about Gradle's Build Cache yet?

In a nutshell the generated output of a Task will cached (either local or remote) and can be reused the next time you build your software. Event on clean builds.

The GCSCache will exactly do that for you. It will store the generated artifacts in your Google Cloud Storage which can be reused the next time you do a build.

How to use it

Apply the plugin

To apply the plugin just put the following to the top of your settings.gradle:

buildscript {
  repositories {
    maven { url "https://plugins.gradle.org/m2/" } // TODO: Check if gradlePluginPortal() is possible
    // or
    jcenter()
  }
  dependencies {
    classpath "" // TODO: Define classpath
  }
}

Configuration

Just go to your settings.gradle and use the following code:

apply plugin: guru.stefma.gcs.cache.GCSCachePlugin // TODO: Use plugin in

buildCache {
    remote(guru.stefma.gcs.cache.GCSBuildCache) {
        push = true 
    }
}

This will enable the GCSCache and enable the push (so that it will upload the artifacts as well).

Other configuration options are:

Property Description Mandatory Default Value
enabled If the remote Build Cache is enabled true
push If artifacts should be pushed/uploaded to the cloud false

Authentication

Since the plugin needs to authenticate you with your Google Cloud you have to follow these steps to authenticate.