Global settings to enable new cache?

I’m working with many different Gradle-based IntelliJ plugin projects.
The Gradle cache regularly grows very large (>185 GB) and the new cache of the plugin sounds great.

Is there a way to globally configure useCache, e.g. with a Gradle property in my global gradle.properties file? I’d rather not update all the projects to fix a local issue.

I only could find intellijPlatformCache, but that’s configuring the path, not the enabled state.

I’m in a similar situation, and ended up having to do both - adding useCache to each plugin, and then globally set the path in Gradle properties file. Luckily I have a fairly cookie-cutter build file for all my plugins (and a mechanism to push out changes to the file to all the repos), so it wasn’t too bad, but still.

If you find a better way, let me know! :folded_hands:

Thanks for highlighting that!

With the 05878a5 commit, I’ve introduced a new Gradle property to globally control this feature:

org.jetbrains.intellij.platform.intellijPlatformIdesCacheEnabled=true

It is already available in the 2.10.5-SNAPSHOT release.

3 Likes

Thank you, Jakub! Much appreciated :slightly_smiling_face:

Amazing! This brings me much excitement and joy! Thank you, Jakub!