Common Gradle Commands
List down all tasks
Convert a project to eclipse project
Build the project
How to run Unit tests
Check dependency tree
Controlling logging level
Each time we execute the gradle command, a new jvm is started. To reduce the build execution time we can use The command-line option, –daemon, which starts a new Java process which loads Gradle classes and libraries. The next time when we run Gradle with the –daemon option, build will be faster as the JVM with the required Gradle classes and libraries is already running.
How to do profiling
If you want to know about how much time is spent in tasks we can use the –profile command-line option. Gradle generates a report file in the build/reports/profile directory.
See the sample report below.
List down all properties available to the tasks