You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the default target of the preprocess task is "build/java-comment-preprocessor/preprocess". This is inside the build folder, which gets deleted entirely when running the clean task. However, if I run preprocess again after a clean, I get > Task :core:preprocess UP-TO-DATE, after which, the preprocess folder won't be regenerated anymore.
Currently, my solution is to enable clearTarget and move the target outside of the build folder so it survives a clean and clears itself. This is not ideal, however.
I think outputs.upToDateWhen { false } works!
The java-comment-preprocessor folder gets regenerated after every clean.
I'm not sure everything works yet since I've got some problems with Kotlin sources thinking they are redeclarations, but I still have some things to try out :).
Thanks!
Edit: Updated so IntelliJ plays nice by only temporarily changing the source folders.
Edit2: Updated again to make intellij not do incremental code changes without jcp
Activity
raydac commentedon Jun 28, 2022
could you try construction, may be it can help
raydac commentedon Jun 28, 2022
also I saw some examples where guys recommend to use construction for tasks
Jolanrensen commentedon Jun 28, 2022
I think
outputs.upToDateWhen { false }works!The java-comment-preprocessor folder gets regenerated after every clean.
I'm not sure everything works yet since I've got some problems with Kotlin sources thinking they are redeclarations, but I still have some things to try out :).
Thanks!
Jolanrensen commentedon Jun 28, 2022
Okay nice! It works :) thanks!
For future reference, I'll put some examples for projects with Kotlin and Scala code (using gradle kts):
Edit: Updated so IntelliJ plays nice by only temporarily changing the source folders.
Edit2: Updated again to make intellij not do incremental code changes without jcp