Skip to content

gabrielfeo/sbt-caching-issues-sample

Repository files navigation

sbt Sample Caching Issues

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.

Samples

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.

Prerequisites

Verbose Cache Logging

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'

License

This project is open-source software released under the Apache 2.0 License.

About

Examples of issues that can be diagnosed to improve Develocity sbt Build Cache effectiveness in a project

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages