I have a JavaExec task in my build.gradle file and it doesn't follow incremental build.
Is there a way to make JavaExec tasks incremental, just like how JavaCompile tasks are made incremental?
Let me know your thoughts.
Thank you!
I have a JavaExec task in my build.gradle file and it doesn't follow incremental build.
Is there a way to make JavaExec tasks incremental, just like how JavaCompile tasks are made incremental?
Let me know your thoughts.
Thank you!
If it is a custom task type that extends
JavaExec, then you could add the@CacheableTaskannotation:Another approach if it is just a
JavaExectask, as described in the Javadocs:https://docs.gradle.org/current/javadoc/org/gradle/work/DisableCachingByDefault.html