Slackbot
03/21/2022, 7:56 PMJohn Bellini
03/21/2022, 9:20 PMJohn Bellini
03/21/2022, 9:21 PMJohn Bellini
03/21/2022, 9:21 PMBrett Guy
03/21/2022, 9:46 PM./gradlew --stop and then re-running clean build of which will start up a new daemon per the output message.
For example:
❯ ./gradlew --stop
Stopping Daemon(s)
1 Daemon stopped
❯ ./gradlew clean build -x test
Starting a Gradle Daemon, 4 stopped Daemons could not be reused, use --status for detailsBrett Guy
03/21/2022, 9:47 PMVampire
03/21/2022, 10:10 PMclean is usually caused by Maven behaving bad, mixing outputs and having stale files and so on.
With Gradle you should usually not always run clean with your build, as all that you cause with it is making some of the most useful features like up-to-date checks void.
With Gradle if you really need to call clean to get a good build result, that is usually more a sign of some bug in the build scripts or plugins of the current project.Brett Guy
03/25/2022, 7:44 PM