Skip to content

Commit 53ac943

Browse files
nakamura-toclaude
andcommitted
Fix SQL test task dependency to ensure SQL files are generated first
Changed shouldRunAfter to dependsOn for SQL test task to guarantee that SQL files are generated before the test task runs, preventing test failures due to missing files. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent c8061ac commit 53ac943

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codegen/src/main/java/org/seasar/doma/gradle/codegen/CodeGenPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ private void registerTasks(Project project, CodeGenConfig codeGenConfig) {
136136
task -> {
137137
task.setDescription("Generates SQL test source files.");
138138
task.setGroup(TASK_GROUP_NAME);
139-
task.shouldRunAfter(sqlTask);
139+
task.dependsOn(sqlTask);
140140
task.getOutputs().upToDateWhen(__ -> false);
141141
connectProperties(task, codeGenConfig);
142142
});

0 commit comments

Comments
 (0)