openapi-processor-gradle 2026.1
no need for afterEvaluate
In previous versions it was necessary to access the processor tasks from an afterEvaluate block. This is no longer necessary.
A simple configuration (apart from the processor configuration itself) to automatically process an OpenAPI YAML and build the generated sources can look like this:
sourceSets {
create("api") {
resources {
srcDir(layout.projectDirectory.dir("src/api"))
}
}
main {
java {
srcDir(tasks.named("processSpring"))
}
}
}