I am familiar with the mechanics of inputs and outputs for gradle tasks. When setup correctly, gradle can check the cache from the last build and determine whether or not a specific task needs to be run by looking at the input and output properties for that task.
I would be interested in using this caching mechanism to conditionally run some code in settings.gradle. Is this possible? I realize the settings.gradle file is run before the life cycle phase for executing tasks is properly setup, but perhaps there is a way to do this anyway using a bit of custom code?
Any help much appreciated.