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.

Suppory Gradle configuration cache

See original GitHub issue

Using a new Gradle 7 feature with org.gradle.unsafe.configuration-cache=true

I get the warning: Calculating task graph as configuration cache cannot be reused because cached version information for com.facebook.react:react-native:+ has expired.

This issue should be improved, otherwise the new feature and performance gain cannot be used in a project using React Native.

Gradle documentation: https://docs.gradle.org/current/userguide/configuration_cache.html

Using com.facebook.react:react-native:+ is still the preferred way in build.gradle, right?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
cortinicocommented, Nov 7, 2022

is wrong for many reasons and today actually causing havoc in our releases.

That’s why we got rid of it in 0.71

1reaction
cortinicocommented, Nov 5, 2021

Enabling configuration cache still has some issues with what is done in react.gradle though.

We’re working towards getting rid of react.gradle entirely in favor of the react-native-gradle-plugin which will support also Configuration Caching.

There is a version of the Gradle plugin already out: https://www.npmjs.com/package/react-native-gradle-plugin

More on this also here https://github.com/react-native-community/discussions-and-proposals/issues/273

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration cache - Gradle User Manual
The configuration cache takes care of caching the build configuration for a particular set of tasks. In other words, the configuration cache saves...
Read more >
How to I enable Gradle configuration cache feature persistently?
The configuration cache takes care of caching the build configuration for a particular set of tasks. In other words, the configuration cache ......
Read more >
Gradle Configuration Caching — Replacing ... - ProAndroidDev
Gradle recently rolled out a new feature called the “configuration cache” aimed at “significantly improving build performance by caching the result of the ......
Read more >
Configuration caching deep dive - Medium
gradle /configuration-cache directory ). It is able to serialize all Gradle-managed types (e.g. FileCollection , Property , Provider ) and all ...
Read more >
Incompatibility issue with Gradle configuration cache #7299
The configuration cache is a feature that significantly improves build performance by caching the result of the configuration phase and ...
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