Skip to content
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

[Configuration cache] Task not up-to-date for SantaTracker #17548

Closed
gavra0 opened this issue Jun 25, 2021 · 2 comments · Fixed by #17590
Closed

[Configuration cache] Task not up-to-date for SantaTracker #17548

gavra0 opened this issue Jun 25, 2021 · 2 comments · Fixed by #17590

Comments

@gavra0
Copy link
Contributor

gavra0 commented Jun 25, 2021

Using Gradle 7.1 and SantaTracker, and running:

rm -rf .gradle/configuration-cache
gw  -DagpVersion=7.0.0-beta04 -DkotlinVersion=1.5.10 clean --configuration-cache  --no-build-cache  -i --configuration-cache-problems=warn
gw  -DagpVersion=7.0.0-beta04 -DkotlinVersion=1.5.10  :common:bundleLibCompileToJarDebug --configuration-cache  --no-build-cache  -i --configuration-cache-problems=warn
gw  -DagpVersion=7.0.0-beta04 -DkotlinVersion=1.5.10  :common:bundleLibCompileToJarDebug --configuration-cache  --no-build-cache  -i --configuration-cache-problems=warn

shows that :common:bundleLibCompileToJarDebug is not up-to-date and santa-tracker-android/common/build/intermediates/compile_library_classes_jar/debug/classes.jar is missing Kotlinc classes (they are present after the 1st run).

This looks related to #17542, but fixing it does not fix this issue. Root cause is that in

fun FileCollection.getDirectories(projectDirectory: Directory): Provider<List<Directory>> =
    elements.map {
        it.filter { file -> file.asFile.isDirectory }
            .map {
                fileSystemLocation -> projectDirectory.dir(fileSystemLocation.asFile.absolutePath)
        }
    }

filter runs to soon, during configuration cache storing.

@mlopatkin
Copy link
Member

@gradle/configuration-cache please take a look at this issue

@eskatos
Copy link
Member

eskatos commented Jul 1, 2021

Fixed in #17585

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants