Elektrine lite

← Feed

@petarov@social.tchncs.de

2026-09-01 09:53 UTC

I got into optimizing our Gradle build on Atlassian Bitbucket last week. Because it seems Develocity no longer plan to support their gradle/build-cache-node Docker image, I thought of building one based on nginx and webdav instead. It's a relatively simple GET/PUT protocol described at https://docs.gradle.org/current/userguide/build_cache.html#sec:build_cache_configure_remote. I saw other projects that use Java server apps to do the same but my goal was no JVM and to use already existing tools. I had Claude put up a prototype, which worked but was horribly over-engineered. I stripped down, removed and edited a good chunk of it and to my surprise it seems to work quite nicely. Cache-files are sharded in order to avoid ext4 inode issues. Our build time went down with about 30 seconds, potentially saving us some money. https://github.com/petarov/gradle-build-cache-nginx #gradle

Replies (0)

No replies.