question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Gradle precompileJte always runs even if nothing has changed

See original GitHub issue

On 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:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
casidcommented, May 11, 2021

Thanks for your investigation and contributing a PR. I’m glad you found a solution!

PR is merged 👍

1reaction
Jerbellcommented, May 11, 2021

I’ve tested this all out - works much better. I’ve done a PR if you want.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found