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"))
}
}
}Gradle 10 compatibility
fixed a Gradle 10 compatibility warning