-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This line seems to contain a bug: if classpathEntry turns out to be a directory, this comparison unsurprisingly always fails: #1140
Comments
Since Gradle 7.x, Gradle's implementation of `ExternalLookup` has become out of sync with Zinc's file stamping and always triggers full recompilation. Since an implementation of `ExternalLookup` is optional and [Zinc's default](https://github.com/sbt/zinc/blob/develop/internal/zinc-core/src/main/scala/sbt/internal/inc/IncrementalCommon.scala#L734) already does what Gradle is trying to do here, the Gradle-customization can be completely removed. Passes all existing tests under `./gradlew scala:build` which are all *intra-project* incremental compilation tests, so we know this change doesn't break anything there. It would probably be good to have (had) an *inter-project* incremental compilation test as well to ensure such a regression doesn't happen again, but that is beyond the scope of what I can contribute at this point. @justinb99's reproducer in #20101 would certainly be a good starting point. Note that this does not address the interplay of the java-library plugin and sbt/zinc#1140 , i.e. only works for jar dependencies. The [workaround](https://github.com/sbt/zinc/blob/develop/internal/zinc-core/src/main/scala/sbt/internal/inc/IncrementalCommon.scala#L44) in zinc might be a short-term solution for that. Signed-off-by: matthias_ernst <matthias_ernst@apple.com> Fixes #20101 Fixes #22964 Co-authored-by: Alex Semin <asemin@gradle.com>
We are facing productivity issues in a gradle multi-project repo with several small gradle subprojects with the plugin |
Try enabling https://github.com/sbt/zinc/blob/develop/internal/zinc-core/src/main/scala/sbt/internal/inc/IncrementalCommon.scala#L46 in the |
Seems to be working for us. Thanks 🙏 |
original description
The
resolve
step was completely dropped in this PR.Originally posted by @mernst-github in #712 (comment)
The text was updated successfully, but these errors were encountered: