-
Notifications
You must be signed in to change notification settings - Fork 110
Description
Thanks for reporting an issue, please review the task list below before submitting the
issue. Your issue report will be closed if the issue is incomplete and the below tasks not completed.
NOTE: If you are unsure about something and the issue is more of a question a better place to ask questions is on Stack Overflow (http://stackoverflow.com/tags/micronaut) or Gitter (https://gitter.im/micronautfw/). DO NOT use the issue tracker to ask questions.
Description
When I generate a project with JTE and KSP used at the same time, I've got an error during Gradle build:
- Gradle detected a problem with the following location: '/tmp/demo/build/generated-sources/jte/gg/jte/generated/precompiled/JteexampleGenerated.java'.
Reason: Task ':kspKotlin' uses this output of task ':generateJte' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
Possible solutions:
1. Declare task ':generateJte' as an input of ':kspKotlin'.
2. Declare an explicit dependency on ':generateJte' from ':kspKotlin' using Task#dependsOn.
3. Declare an explicit dependency on ':generateJte' from ':kspKotlin' using Task#mustRunAfter.
For more information, please refer to https://docs.gradle.org/8.13/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.
The exact application was created with mn create-app --build=gradle_kotlin --jdk=21 --lang=kotlin --test=kotest --features=data-mongodb,views-jte,kotlin-extension-functions,crac,graalvm,config4k,micronaut-aot,shade,micronaut-http-validation,hibernate-validator,problem-json,undertow-server,spring-boot,spring com.example.demo
Expected Behaviour
Build should pass
Actual Behaviour
Build fails with an error above
Environment Information
- Operating System:
Linux cachyos-x8664 6.14.2-2-cachyos - Micronaut Version: 4.8.2
- JDK Version: 23.0.2