A plugin for using an Azure Blob Storage as remote build cache.
- Create an Azure Blob Storage Account and Container
- Create a "shared access signature" for this container with appropriate permissions
- Allowed services: Blob
- Allowed resource types: Object
- 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
}
}
To test and debug integration with your blob storage, you can use the
AzureBlobStorageBuildCacheServiceIntegrationTest.
Just insert the URL of your blob storage there.