A collection of self-contained sbt projects, each demonstrating a specific build cache issue that can be diagnosed using the Develocity sbt plugin's verbose cache logging.
| Sample | Cache issue | Affected task |
|---|---|---|
volatile-source-input/ |
Generated source with timestamp changes compile cache key every build | Compile / compile |
volatile-test-config/ |
Volatile JVM option injected into forked test process changes test cache key every session | Test / test |
require-clean-violation/ |
Incremental compilation state prevents cache storage when requireClean is true (the default) |
Compile / compile |
Each sample includes a README with the problem description, reproduction steps, diagnosis workflow, and fix.
- sbt
- JDK 21+
All samples are designed to be diagnosed with verbose cache logging enabled:
cd <sample-dir>
sbt -Ddevelocity.internal.cache.verbose=true \
-Ddevelocity.internal.cache.defaultLogLevel=info \
'clean; compile'This project is open-source software released under the Apache 2.0 License.