Gradle precompileJte always runs even if nothing has changed
See original GitHub issueOn my system - if I run the precompileJte
task then it doesn’t seem to take into account that the inputs and outputs have not changed.
From the gradle log:
> Task :app:compileKotlin UP-TO-DATE
> Task :app:compileJava NO-SOURCE
> Task :app:precompileJte
> Task :app:processResources UP-TO-DATE
> Task :app:classes
> Task :app:inspectClassesForKotlinIC UP-TO-DATE
> Task :app:jar UP-TO-DATE
I’ve had a quick look at your plugin code and it looks fine.
I’ve also changed the output directory to something that’s not used/changed and the problem still occurs.
I’ll try to have a better look when I have more time 😃
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Why is my Gradle task always running? - Stack Overflow
Gradle does not know that your source was not changed. For any unknown status it marks the task as not up ...
Read more >Upgrading your build from Gradle 7.x to the latest
Starting with Gradle 7.6, non-strict accessors generation for Kotlin DSL precompiled script plugins has been deprecated. This will change in Gradle 8.0.
Read more >Solving common problems - Gradle User Manual
The worst that could happen is that your task doesn't execute when it should. Developers can always re-run the build with clean ,...
Read more >What's new in Gradle 7.0
This is especially true when your IDE uses Gradle to build and run tests for your project. File system watching speeds up local...
Read more >Gradle Build Tool Features
Gradle checks in between build runs whether the input, output or an implementation of a task has changed since the last build invocation....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for your investigation and contributing a PR. I’m glad you found a solution!
PR is merged 👍
I’ve tested this all out - works much better. I’ve done a PR if you want.