Skip to content

GisoBartels/gradle-build-cache-azure-blob-storage

Repository files navigation

Release License

Gradle Remote Build Cache Plugin for Azure Blob Storage

A plugin for using an Azure Blob Storage as remote build cache.

Usage

  1. Create an Azure Blob Storage Account and Container
  2. Create a "shared access signature" for this container with appropriate permissions
    • Allowed services: Blob
    • Allowed resource types: Object
  3. Configure the cache in your settings.gradle[.kts]
// settings.gradle.kts
buildscript {
    repositories {
        maven { url = uri("https://jitpack.io") }
        mavenCentral()
    }
    dependencies {
        classpath("dev.giso:gradle-build-cache-azure-blob-storage:{version}")
    }
}

buildCache {
    azureBlobStorage {
        url = "https://{your-account}.blob.core.windows.net/{your-container}?{your-sas-token}"
        isPush = true
    }
}

Debugging

To test and debug integration with your blob storage, you can use the AzureBlobStorageBuildCacheServiceIntegrationTest.
Just insert the URL of your blob storage there.

About

A plugin for using an Azure Blob Storage as remote Gradle build cache

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages