Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -583,5 +583,19 @@ mutflow compiles your sources twice — once normally (`main`) and once with mut

See [Disabling Mutation Testing](#disabling-mutation-testing) for all configuration options.

### JOOQ code generation fails with mutflow

If you use [JOOQ](https://www.jooq.org/) with Gradle code generation (`jooq-codegen`), mutflow's additional compilation task (`compileMutatedMainKotlin`) may fail because it doesn't depend on the `jooqCodegen` task.

**Solution:** Use `tasks.withType` to ensure all Kotlin compilation tasks depend on JOOQ code generation:

```kotlin
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
dependsOn("jooqCodegen")
}
```

> **Note:** Using `tasks.withType<KotlinCompile>` instead of `tasks.named("compileKotlin")` is important — the latter only targets standard production compilation, while `withType` matches all Kotlin compilation tasks including mutflow's.

---
Co-developed with an AI assistant.