Questions tagged [gradle-daemon]

42 questions
6
votes
3 answers

Failed to exec spawn helper

When running docker-compose up I get: ------ executor failed running [/bin/sh -c gradle shadowJar]: exit code: 1 ERROR: Service 'slack_bot' failed to build : Build failed Then I tried running Gradle with --info and it mentions an exception in…
Luís Soares
  • 5,726
  • 4
  • 39
  • 66
6
votes
1 answer

Gradle Daemon could not be reused

I am trying to run a react native project but I see an error saying "Starting a Gradle Daemon, 14 busy and 1 incompatible and 2 stopped Daemons could not be reused, use --status for details" after which the terminal stays idle. Hello, I've followed…
HristoTotov
  • 133
  • 1
  • 2
  • 5
5
votes
1 answer

How to avoid start of Gradle daemon inside Dockerfile

I have the following Dockerfile: FROM gradle:6.3-jdk8 as builder WORKDIR / COPY . / RUN gradle shadow --no-daemon EXPOSE 9999 CMD ["java", "-jar", "search-all.jar"] I want to avoid Gradle daemon starting every time I build the image. Is there any…
deanavenger
  • 582
  • 1
  • 7
  • 24
5
votes
1 answer

Gradle Daemon being killed in "Finalize Job" step

I've got a "Build" pipeline that runs gradlew build on my java code and then just exports the jar as an artifact. It is currently running on a self hosted agent as I was hoping this will help speed up the compilation. I noticed that at the start of…
5
votes
1 answer

Does Android Studio use Gradle Daemon?

I used Gradle Daemon to build Android project from the command line and noticed it was quite fast. But Android Studio seems a bit slow compared to the command line, so that got me wondering: Is Android Studio using Gradle Daemon to speed up builds…
Mehdiway
  • 10,337
  • 8
  • 36
  • 68
5
votes
1 answer

Gradle wrapper and daemon

As many of you already know, the Gradle daemon can speed considerably Gradle. I have a multimodule build and using Gradle wrapper. When running from the command line: gradlew :MyModule:test Gradle spends some seconds analyzing my modules. If I…
david.perez
  • 6,090
  • 4
  • 34
  • 57
4
votes
0 answers

Auto start Gradle Daemon in build container

I have a Jenkins Server running which uses the Docker and Cloud plugins to allow for spawning of a new container from a specified image as required. Inside this container I build a Java project which uses the Gradle Daemon. Basically it starts the…
Duncan
  • 45
  • 5
4
votes
0 answers

How To Keep Gradle Daemon alive in Jenkins Build

Everytime Jenkins finished the build, it will kill every process it produced. But with Android project, I want the Gradle Daemon to keep alive in the background to get fast build time in the next build, is there any solution to this? Thank you for…
ldjhust
  • 401
  • 3
  • 13
4
votes
2 answers

How can I find out if the gradle daemon is running?

I am developing Android applications with Android Studio 2.0. I read in a lot of blogposts that enabling the gradle daemon should increase the build performance drastically. My problem is, that I do not know how to check if the daemon is running. I…
4
votes
1 answer

How does Android Studio launch the Gradle Daemon?

I'm running into an issue where the Gradle daemon (as started by Android Studio via the tooling API) is using a different Java version than when run via the command line. I do not have any value set for JAVA_HOME and java is in my path: java…
4
votes
0 answers

How to set system property for Gradle Daemon

I would like to set a JVM system property for the Gradle daemon process. I tried the following in ~/.gradle/gradle.properties: org.gradle.daemon=true org.gradle.jvmargs=-Djava.net.preferIPv4Stack=true It seems org.gradle.jvmargs mentioned here does…
centic
  • 15,565
  • 9
  • 68
  • 125
3
votes
2 answers

Momentarily kill or restart Gradle Daemon from inside IntelliJ IDEA? "gradle --stop" doesn't work

IntelliJ IDEA 2021.1 and 2021.2 leaves the Gradle Daemon running when I exit the program. I would like to know if there is a way to momentarily stop or restart the Gradle Daemon from within IntelliJ without exiting. Gradle has a lock on files that…
BustedChain
  • 35
  • 1
  • 6
3
votes
1 answer

Gradle daemon not reused when running in debug mode (in IntelliJ IDEA)

I created new Java project in IntelliJ IDEA with gradle (and added one class which prints hello world). Then I try to run project both in debug and non-debug modes. When I first time run in non-debug mode, IntelliJ prints that new daemon was…
diralik
  • 6,391
  • 3
  • 28
  • 52
3
votes
1 answer

Why did the Gradle Daemon die?

How do I determine why my Gradle Daemon died? The only message I get isL Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed) This occurs in an active build. Several steps will finish and a step will appear to…
Jacob Tomaw
  • 1,341
  • 1
  • 10
  • 15
3
votes
2 answers

How can I control the output from gradle daemon

I am setting jvm args in my gradle build and it is giving me this mildly annoying message: Note: in order to honour the org.gradle.jvmargs and/or org.gradle.java.home values specified for this build, it is necessary to fork a new JVM. To avoid the…
Gus
  • 6,719
  • 6
  • 37
  • 58