gradlex-org / java-module-dependencies

A Gradle plugin to use dependencies from 'module-info.java' files.
Apache License 2.0
48 stars 9 forks source link

The settings Plugin will cause frequent configuration cache misses #128

Open TheGoesen opened 1 week ago

TheGoesen commented 1 week ago

While writing test cases I discovered that the settings plugin will cause will cause configuration cache misses. If you apply the settings plugin and compile the same module 2 times in a row you will get: Calculating task graph as configuration cache cannot be reused because directory '.' has changed. So because the Settings plugin just operates on Files instead of using valueSources doing about anything can cause a configuration cache miss, especially deleting or creating the build directory

TheGoesen commented 2 days ago

so the problem does not lie that much in the settings plugin generally but more in the "directory" functionality. Since directory list list all files including the build directory this functionality can be a bit problematic