sbt/notes
Dream 544f56695a
[2.x] feat: Add cacheVersion setting for global cache invalidation (#8993)
* [2.x] feat: Add cacheVersion setting for global cache invalidation

**Problem**
There was no escape hatch to invalidate all task caches when needed.

**Solution**
Add `Global / cacheVersion` setting that incorporates into the cache key
hash. Changing it invalidates all caches. Defaults to reading system
property `sbt.cacheversion`, or else 0L. When 0L, the hash is identical
to the previous behavior (backward compatible).

Fixes #8992

* [2.x] refactor: Simplify BuildWideCacheConfiguration and add cacheVersion test

- Replace auxiliary constructors with default parameter values
- Add unit test verifying cacheVersion invalidates the cache

* [2.x] fix: Restore auxiliary constructors for binary compatibility

* [2.x] test: Improve cacheVersion scripted test and add release note

- Scripted test now verifies cache invalidation via a counter
  that increments only when the task body actually executes
- Add release note documenting the cacheVersion setting
2026-04-01 11:23:10 +09:00
..
1.0.0
1.0.3
1.1.2
1.1.4
1.1.5
1.2.0
1.3.0 Set swoval.tmpdir with absolute path via globalBasePath (#5048) 2019-09-09 14:13:34 -04:00
1.6.0 Enable the asciiGraphWidth setting to the dependencyTree tasks. #5962 2021-10-19 02:15:31 +09:00
1.7.0 Filter incompatible Scala 3 projects in cross switch commands 2022-06-26 22:46:37 -04:00
1.8.0 Add support for BSP's buildTarget/outputPaths method 2022-08-03 10:13:48 +02:00
2.0.0 [2.x] feat: Add cacheVersion setting for global cache invalidation (#8993) 2026-04-01 11:23:10 +09:00
0.10.0.markdown
0.10.1.markdown
0.11.0.markdown
0.11.3.markdown
0.13.6.markdown Spelling (#8028) 2025-02-04 01:11:28 -05:00
0.13.7.markdown Spelling (#8028) 2025-02-04 01:11:28 -05:00
0.13.8.markdown
0.13.9.markdown
0.13.11.markdown Spelling (#8028) 2025-02-04 01:11:28 -05:00
0.13.12.markdown
0.13.13.markdown
0.13.14.markdown
0.13.16.markdown
1.0.0.markdown Spelling (#8028) 2025-02-04 01:11:28 -05:00
1.0.1.markdown
1.0.2.markdown
1.0.3.markdown
1.0.4.markdown Spelling (#8028) 2025-02-04 01:11:28 -05:00
1.1.0.markdown Spelling (#8028) 2025-02-04 01:11:28 -05:00
1.1.1.markdown
about.markdown
sample.md