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

Libraries info are not retrieved with Gradle Configuration Cached on #1008

Closed
paolorotolo opened this issue Jul 12, 2024 · 3 comments
Closed

Comments

@paolorotolo
Copy link

How to reproduce it

  • Create a new project
  • Include AboutLibraries
  • Enable gradle configuration cache in gradle.properties
org.gradle.configuration-cache=true

  • Run ./gradlew findLibraries
  • AboutLibraries will not be able to retreive lib metadata:
./gradlew findLibraries
Reusing configuration cache.

> Task :app:findLibraries
variant: debug
variant: debugAndroidTest
variant: debugUnitTest
variant: release
variant: releaseUnitTest


--> Retrieved no components for: androidx.activity:activity:1.9.0
--> Retrieved no components for: androidx.activity:activity-compose:1.9.0
--> Retrieved no components for: androidx.activity:activity-ktx:1.9.0
--> Retrieved no components for: androidx.annotation:annotation-experimental:1.4.0
--> Retrieved no components for: androidx.annotation:annotation-jvm:1.8.0
--> Retrieved no components for: androidx.arch.core:core-common:2.2.0
--> Retrieved no components for: androidx.arch.core:core-runtime:2.2.0
--> Retrieved no components for: androidx.autofill:autofill:1.0.0
--> Retrieved no components for: androidx.collection:collection-jvm:1.4.0
--> Retrieved no components for: androidx.collection:collection-ktx:1.4.0
--> Retrieved no components for: androidx.compose.animation:animation-android:1.6.6
--> Retrieved no components for: androidx.compose.animation:animation-core-android:1.6.6
--> Retrieved no components for: androidx.compose.foundation:foundation-android:1.6.6
--> Retrieved no components for: androidx.compose.foundation:foundation-layout-android:1.6.6
--> Retrieved no components for: androidx.compose.material3:material3-android:1.2.1
--> Retrieved no components for: androidx.compose.material:material-android:1.6.6
--> Retrieved no components for: androidx.compose.material:material-icons-core-android:1.6.6
--> Retrieved no components for: androidx.compose.material:material-ripple-android:1.6.6
--> Retrieved no components for: androidx.compose.runtime:runtime-android:1.6.6
--> Retrieved no components for: androidx.compose.runtime:runtime-saveable-android:1.6.6
--> Retrieved no components for: androidx.compose.ui:ui-android:1.6.6
--> Retrieved no components for: androidx.compose.ui:ui-geometry-android:1.6.6
--> Retrieved no components for: androidx.compose.ui:ui-graphics-android:1.6.6
--> Retrieved no components for: androidx.compose.ui:ui-test-manifest:1.6.6
--> Retrieved no components for: androidx.compose.ui:ui-text-android:1.6.6
--> Retrieved no components for: androidx.compose.ui:ui-tooling-android:1.6.6
--> Retrieved no components for: androidx.compose.ui:ui-tooling-data-android:1.6.6
--> Retrieved no components for: androidx.compose.ui:ui-tooling-preview-android:1.6.6
--> Retrieved no components for: androidx.compose.ui:ui-unit-android:1.6.6
--> Retrieved no components for: androidx.compose.ui:ui-util-android:1.6.6
--> Retrieved no components for: androidx.compose:compose-bom:2024.04.01
--> Retrieved no components for: androidx.concurrent:concurrent-futures:1.1.0
--> Retrieved no components for: androidx.core:core:1.13.1
--> Retrieved no components for: androidx.core:core-ktx:1.13.1
--> Retrieved no components for: androidx.customview:customview-poolingcontainer:1.0.0
--> Retrieved no components for: androidx.emoji2:emoji2:1.3.0
--> Retrieved no components for: androidx.interpolator:interpolator:1.0.0
--> Retrieved no components for: androidx.lifecycle:lifecycle-common-java8:2.8.3
--> Retrieved no components for: androidx.lifecycle:lifecycle-common-jvm:2.8.3
--> Retrieved no components for: androidx.lifecycle:lifecycle-livedata-core:2.8.3
--> Retrieved no components for: androidx.lifecycle:lifecycle-process:2.8.3
--> Retrieved no components for: androidx.lifecycle:lifecycle-runtime-android:2.8.3
--> Retrieved no components for: androidx.lifecycle:lifecycle-runtime-ktx-android:2.8.3
--> Retrieved no components for: androidx.lifecycle:lifecycle-viewmodel-android:2.8.3
--> Retrieved no components for: androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.3
--> Retrieved no components for: androidx.lifecycle:lifecycle-viewmodel-savedstate:2.8.3
--> Retrieved no components for: androidx.profileinstaller:profileinstaller:1.3.1
--> Retrieved no components for: androidx.savedstate:savedstate:1.2.1
--> Retrieved no components for: androidx.savedstate:savedstate-ktx:1.2.1
--> Retrieved no components for: androidx.startup:startup-runtime:1.1.1
--> Retrieved no components for: androidx.tracing:tracing:1.0.0
--> Retrieved no components for: androidx.versionedparcelable:versionedparcelable:1.1.1
--> Retrieved no components for: com.google.guava:listenablefuture:1.0
--> Retrieved no components for: com.mikepenz:aboutlibraries-core-android:11.2.2
--> Retrieved no components for: org.jetbrains.kotlin:kotlin-stdlib:2.0.0
--> Retrieved no components for: org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.0
--> Retrieved no components for: org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.0
--> Retrieved no components for: org.jetbrains.kotlinx:kotlinx-collections-immutable-jvm:0.3.7
--> Retrieved no components for: org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3
--> Retrieved no components for: org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.7.3
--> Retrieved no components for: org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.7.3
--> Retrieved no components for: org.jetbrains.kotlinx:kotlinx-serialization-bom:1.6.3
--> Retrieved no components for: org.jetbrains.kotlinx:kotlinx-serialization-core-jvm:1.6.3
--> Retrieved no components for: org.jetbrains.kotlinx:kotlinx-serialization-json-jvm:1.6.3
--> Retrieved no components for: org.jetbrains:annotations:23.0.0
--> Retrieved no components for: androidx.compose.ui:ui-test-android:1.6.6
--> Retrieved no components for: androidx.compose.ui:ui-test-junit4-android:1.6.6
--> Retrieved no components for: androidx.concurrent:concurrent-futures-ktx:1.1.0
--> Retrieved no components for: androidx.test.espresso:espresso-core:3.6.1
--> Retrieved no components for: androidx.test.espresso:espresso-idling-resource:3.6.1
--> Retrieved no components for: androidx.test.ext:junit:1.2.1
--> Retrieved no components for: androidx.test.services:storage:1.5.0
--> Retrieved no components for: androidx.test:core:1.6.1
--> Retrieved no components for: androidx.test:monitor:1.7.1
--> Retrieved no components for: androidx.test:runner:1.6.1
--> Retrieved no components for: com.google.code.findbugs:jsr305:3.0.2
--> Retrieved no components for: com.google.errorprone:error_prone_annotations:2.18.0
--> Retrieved no components for: javax.inject:javax.inject:1
--> Retrieved no components for: junit:junit:4.13.2
--> Retrieved no components for: org.hamcrest:hamcrest-core:1.3
--> Retrieved no components for: org.hamcrest:hamcrest-library:1.3
--> Retrieved no components for: org.jetbrains.kotlinx:kotlinx-coroutines-test-jvm:1.7.3

Details

  • Used library version: 11.2.2
    - Used gradle build tools version: 8.5.0
  • Used tooling / Android Studio version: Koala 2024.1.1
@paolorotolo
Copy link
Author

@mikepenz
Copy link
Owner

Please see the already open issue here: #839

There were some improvements introduced since, but occassionally it would still have difficulties with configuration cache unfortunately.

For that it might require a complete rewrite :/

For enterprise usecases I generally advice to set-up the build to generate the file and have it part of your SCM. In that case it might be fine to disable config cache (as it wouldn't affect each developers builds)

@mikepenz
Copy link
Owner

Closing this as a duplicate.

I'd be hugely appreciative for anyone helping on this problem!

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

No branches or pull requests

2 participants