Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 launch again, it consumes the valuable time again and again.

I'm using Gradle 1.12.

I've tried to set add this line:

org.gradle.daemon=true

to local.properties, but no luck.

I don't know if I have to change myHome/.gradle/gradle.properties or some other file.

like image 337
david.perez Avatar asked Oct 01 '22 08:10

david.perez


1 Answers

org.gradle.daemon=true has to be added to gradle.properties, not local.properties.

like image 73
Peter Niederwieser Avatar answered Oct 11 '22 06:10

Peter Niederwieser