[jOOQ/jOOQ#16318] We shouldn't register source sets in task execution

This commit is contained in:
Lukas Eder 2024-06-12 16:49:38 +02:00
parent 12ac2d781b
commit 119ebc9641
2 changed files with 1 additions and 2 deletions

View File

@ -94,7 +94,6 @@ public class CodegenPlugin implements Plugin<Project> {
task.setDescription("jOOQ code generation" + (configuration.unnamed ? " for all executions" : " for the " + configuration.name + " execution"));
task.setGroup("jOOQ");
task.doFirst(CodegenTask::registerSourceSet);
};
}
}

View File

@ -94,7 +94,7 @@ public class CodegenTask extends DefaultTask {
// [#16318] When the task is up-to-date, we still have to register our source set contributions, which
// apparently aren't being cached by gradle's build cache.
getOutputs().upToDateWhen(task -> upToDate(task) && registerSourceSet(task));
getOutputs().upToDateWhen(task -> registerSourceSet(task) && upToDate(task));
}
static boolean registerSourceSet(Task t) {