[jOOQ/jOOQ#16318] We shouldn't register source sets in task execution
This commit is contained in:
parent
12ac2d781b
commit
119ebc9641
@ -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);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user