Questions tagged [gradle-cache]

is a cache mechanism that aims to save time by reusing outputs produced by other builds. The build cache works by storing (locally or remotely) build outputs and allowing builds to fetch these outputs from the cache when it is determined that inputs have not changed, avoiding the expensive work of regenerating them.

11 questions
11
votes
2 answers

Gradle build cache is not enabled for task

I have enabled gradle build cache for my project. But, we are using some non-built in tasks like npm-install from third party plugins. Gradle is not enabling cache for these tasks. For example it shows something like below when such task is executed…
dharanikesav
  • 737
  • 2
  • 7
  • 9
7
votes
2 answers

.gradle\caches\6.1.1\file-changes\last-build.bin (Access is denied)

I've tried to delete .gradle folder or delete last-build.bin file, but it isn't work. Could everyone have the solution to this problem ? thank you...
4
votes
2 answers

Disable remote Gradle cache for one task

I have a Gradle build with both local and remote cache configured. Among other things I use Spotless Gradle plugin. That plugin has marked its tasks (spotlessCheck and spotlessApply) as cacheable. The problem is that in my case task itself is quite…
Nikem
  • 5,716
  • 3
  • 32
  • 59
4
votes
0 answers

Can com.android.build.gradle.tasks.PackageApplication task be cacheable?

I'm exploring build scan of my Android project and I've found that task com.android.build.gradle.tasks.PackageApplication is not cacheable due to the reason: Not cacheable: Task output caching not enabled. Is it possible to make this task cacheable,…
1
vote
0 answers

How can I configure gradle build cache to normalize line endings for files?

I have configured gradle build cache for my gradle project; however I'm seeing cache misses because of some specific files between linux (ci, wsl) and windows. Here's an example of a file that works fine, and one that doesn't: Windows line endings…
jpennell
  • 631
  • 1
  • 5
  • 14
1
vote
2 answers

Could not parse the Android Application Module's Gradle config ,While connecting to Firebase

I am getting this error ,While connecting the app to firebase from the firebase assistant in Android Studio. Error message -Could not parse the Android Application Module's Gradle config. Resolve gradle build issues and/or resync. I tried every…
1
vote
1 answer

Reuse Gradle cache in Teamcity CI agents

Given I have multiple agents which build Gradle 5.X based applications, I'd like to start caching Gradle dependencies across all agents. I tried to share .gradle folder, but when I try to run the same build on 2 agents, one of them fails on: Caused…
Patrik Mihalčin
  • 3,341
  • 7
  • 33
  • 68
1
vote
1 answer

How to make Intellij IDEA use parallel and gradle build cache for building

What controls how an Intellij IDEA IDE build / rebuild uses the gradle build cache and parallel options? I have gradle build cache setup and if I run gradle via IDEA runConfiguration I see the following: 45s clean build --parallel -x test 34s build…
Peter Kahn
  • 12,364
  • 20
  • 77
  • 135
0
votes
0 answers

How to download all gradle project dependencies without executing tasks?

Looking for a way to download into cache all the dependencies enumerated in verification-metadata.xml of a Gradle project without actual executing of the tasks requiring those dependencies. For instance, if the dependencies cache is empty and we run…
diziaq
  • 6,881
  • 16
  • 54
  • 96
0
votes
0 answers

Gradle Build with gradle cache on docker container

To use the live reload functionality i have to use entry point as gradle quarkusDev to build and run my app/service on a docker container. But as I am working with a monorepo there are a lot of dependencies that gets downloaded as part of build and…
0
votes
1 answer

Task output caching is enabled, but no build caches are configured or enabled

I have configured buildCache {} section with remote cache enabled, but the log shows Task output caching is enabled, but no build caches are configured or enabled What am I missing?
Wins
  • 3,420
  • 4
  • 36
  • 70