When compiling a groovy project, gradle creates files in $projectRoot/build/
. Is there a way to configure this to e.g. an absolute path?
The Gradle user home directory ( $USER_HOME/.gradle by default) is used to store global configuration properties and initialization scripts as well as caches and log files.
A gradle process is started as soon as you run a command starting with gradle <with args> in a directory where a build. gradle exists. (note that if you use the wrapper : the command is gradlew <with args> ) . When using an IDE (like Android Studio) : the IDE can start the gradle process for you.
Yes, there is. You can put the following line in your build script:
buildDir = 'your_directory'
Or in gradle.properties
file (no quotes around your_directory
in that case).
gradle properties
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With