A little of topic but tied to Compose so sorry to ...
# compose
t
A little of topic but tied to Compose so sorry to ask this, but does anyone know how to make recent Gradle version to cache snapshots for Compose for more than 24h ?
Tried everything like
Copy code
configurations.all {
        resolutionStrategy.cacheChangingModulesFor(15, TimeUnit.DAYS)
        resolutionStrategy.cacheDynamicVersionsFor(15, TimeUnit.DAYS)
    }
But it never works. And then every day depending on the hour I hit that the compose snapshot server can be slow as hell and I got a 10minutes or more downloading ....
Copy code
Download <https://androidx.dev/snapshots/builds/12619403/artifacts/repository/androidx/compose/ui/ui/1.8.0-SNAPSHOT/maven-metadata.xml>, took 9 s 93 ms
Download <https://androidx.dev/snapshots/builds/12619403/artifacts/repository/androidx/compose/animation/animation/1.8.0-SNAPSHOT/maven-metadata.xml>, took 9 s 627 ms
Download <https://androidx.dev/snapshots/builds/12619403/artifacts/repository/androidx/compose/foundation/foundation/1.8.0-SNAPSHOT/maven-metadata.xml>, took 9 s 542 ms
Download <https://androidx.dev/snapshots/builds/12619403/artifacts/repository/androidx/compose/runtime/runtime/1.8.0-SNAPSHOT/maven-metadata.xml>, took 17 s 164 ms
Download <https://androidx.dev/snapshots/builds/12619403/artifacts/repository/androidx/compose/ui/ui-util/1.8.0-SNAPSHOT/maven-metadata.xml>, took 15 s 844 ms
Download <https://androidx.dev/snapshots/builds/12619403/artifacts/repository/androidx/compose/animation/animation-android/1.8.0-SNAPSHOT/maven-metadata.xml>, took 1 s 168 ms
Download <https://androidx.dev/snapshots/builds/12619403/artifacts/repository/androidx/compose/ui/ui-text-google-fonts/1.8.0-SNAPSHOT/maven-metadata.xml>, took 11 s 854 ms
Download <https://androidx.dev/snapshots/builds/12619403/artifacts/repository/androidx/compose/ui/ui-tooling/1.8.0-SNAPSHOT/maven-metadata.xml>, took 11 s 685 ms
Download <https://androidx.dev/snapshots/builds/12619403/artifacts/repository/androidx/compose/ui/ui-android/1.8.0-SNAPSHOT/maven-metadata.xml>, took 10 s 84 ms
Download <https://androidx.dev/snapshots/builds/12619403/artifacts/repository/androidx/compose/foundation/foundation-android/1.8.0-SNAPSHOT/maven-metadata.xml>, took 650 ms
Download <https://androidx.dev/snapshots/builds/12619403/artifacts/repository/androidx/compose/ui/ui-util-android/1.8.0-SNAPSHOT/maven-metadata.xml>, took 7 s 245 ms
Download <https://androidx.dev/snapshots/builds/12619403/artifacts/repository/androidx/compose/runtime/runtime-android/1.8.0-SNAPSHOT/maven-metadata.xml>, took 6 s 242 ms
(I'm on 1GB fiber connection the issue is server side)