Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle: How print the dependency artifact urls on console

Tags:

We are moved from maven to gradle, In maven, with the build command, we can clearly see the nexus URLs from where the dependencies are fetched.

With gradle how could I see the dependency URLs while the project is building? Is there any command line option that does this in gradle.

like image 684
Vivek Avatar asked Jan 01 '19 14:01

Vivek


People also ask

How do I list all Gradle dependencies?

If you want to visualize your dependencies in a graph you can use gradle-dependency-graph-generator plugin. Generally the output of this plugin can be found in build/reports/dependency-graph directory and it contains three files (. dot|. png|.

What is Mavencentral () in Gradle?

Maven Central is a popular repository hosting open source libraries for consumption by Java projects. To declare the Maven Central repository for your build add this to your script: Example 1. Adding central Maven repository. build.gradle.

Where are the dependencies downloaded in Gradle?

Gradle declares dependencies on JAR files inside your project's module_name /libs/ directory (because Gradle reads paths relative to the build.gradle file). This declares a dependency on version 12.3 of the "app-magic" library, inside the "com.example.android" namespace group.

Where is Gradle artifacts?

The default location of this file is: on Windows: %HOMEPATH%\. gradle\gradle. properties.


1 Answers

Log level details related to dependency downloads are not shown by default with gradle.

To enable these dependency download logs, pass the --info option or simply --i flag with gradle command and it will print the dependency download URLs on the console.

like image 63
Vivek Avatar answered Sep 28 '22 04:09

Vivek