austinarbor/version-catalog-generator

Build Caching

austinarbor opened this issue · 0 comments

Determine if we can integrate with build caching. An easy way would probably be to write the generated catalog to a file. If the file exists, load it, otherwise regenerate.

After researching, it looks like the built-in incremental build features only exist for tasks. Unfortunately settings plugins do not have tasks.

Instead, we will save a copy of the generated version catalog in root-project-dir/build/catalogs/libs.name-artifactId-artifactVersion.toml

If the file exists, we will return it directly. If it does not exist, we will proceed with generating the version catalog.