yesamer opened a new pull request, #4310: URL: https://github.com/apache/incubator-kie-kogito-runtimes/pull/4310
## Summary Fix intermittent resource generation in `kogito-gradle-plugin` by declaring the Gradle build output directory as a task output. In some Spring Boot Gradle projects, generated files such as: - `kie-spring-boot-config.properties` - `dmnModelPaths.txt` were intermittently missing after clean builds, causing flaky test behavior. ## Root cause `GenerateModelTask` delegates generation to `BuilderManager`, which writes artifacts under the project build output directory. However, that directory was previously marked as `@Internal`, so Gradle was not aware that `generateModel` produced outputs there. This could lead to incorrect incremental/up-to-date behavior and intermittent missing generated files. ## Fix Change `projectBuildOutputDirectory` in `AbstractKieTask` from: ```java @Internal protected Property<File> projectBuildOutputDirectory; ``` to: ```java @OutputDirectory protected Property<File> projectBuildOutputDirectory; ``` This makes Gradle track the actual output location used by the task. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
