Gradle build only one module
To execute a task of a specific subproject, specify its task path. For example: gradle :ABC:build The leading : stands for the root project. ABC is the subproject, and build a task in that project.
To execute a task of a specific subproject, specify its task path. For example: gradle :ABC:build The leading : stands for the root project. ABC is the subproject, and build a task in that project.
list the tasks and what tasks they depend on (sort of like maven’s depenceny:tree but for tasks) for this you can use –dry-run (or -m) option which lists tasks which are executed in order for particular command, but does not execute the command, e.g. gradle assemble –dry-run you can find more here
Remove the lock files in the gradle cache by executing something like this: find ~/.gradle -type f -name “*.lock” -delete
~/.gradle/gradle.properties: mavenUser=admin mavenPassword=admin123 build.gradle: … authentication(userName: mavenUser, password: mavenPassword)
You generate it once, and again when you’d like to change the version of Gradle you use in the project. There’s no need to generate is so often. Here are the docs. Just add wrapper task to build.gradle file and run this task to get the wrapper structure. Mind that you need to have Gradle … Read more
On Mac, Linux and Windows i.e. on all 3 of the major platforms, Gradle stores dependencies at: ~/.gradle/caches/modules-2/files-2.1
The difference lies in the fact that ./gradlew indicates you are using a gradle wrapper. The wrapper is generally part of a project and it facilitates installation of gradle. If you were using gradle without the wrapper you would have to manually install it – for example, on a mac brew install gradle and then … Read more
For Android Studio 3.1, select the icon below the Build one in the Build window. By Android Studio 3.3 (possibly in 3.2.1), the icon has changed, though the location is the same: The build window should open when you run a build action (e.g. from the Build menu). If you don’t see it, you can … Read more
Try to set the execution flag on your gradlew file: chmod +x gradlew
Without modules: gradle dependencies For Android: gradle app:dependencies Using gradle wrapper: ./gradlew app:dependencies Note: Replace app with the project module name. Additionally, if you want to check if something is compile vs. testCompile vs androidTestCompile dependency as well as what is pulling it in: ./gradlew :app:dependencyInsight –configuration compile –dependency <name> ./gradlew :app:dependencyInsight –configuration testCompile –dependency … Read more