Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to check what libraries are managed by plugin "io.spring.dependency-management"

So... here is the scenario.

Let's say I am trying to add library A to build.gradle file.

And I want to know if version of library A is managed by plugin io.spring.dependency-management.

How can I achieve that?

I am not giving specific library because the answer for specific library is not what I am looking for

thank you in advance!

my source code

like image 666
Joo Hyuk Kim Avatar asked Sep 20 '25 23:09

Joo Hyuk Kim


1 Answers

The io.spring.dependency-management plugin provides a task, dependencyManagement, that could be used to find all the managed dependencies and their versions.

$  gradle dependencyManagement

> Task :dependencyManagement

------------------------------------------------------------
Root project
------------------------------------------------------------

global - Default dependency management for all configurations
    antlr:antlr 2.7.7
    ch.qos.logback:logback-access 1.2.10
    ch.qos.logback:logback-classic 1.2.10
    ch.qos.logback:logback-core 1.2.10
    com.atomikos:transactions-jdbc 4.0.6
    com.atomikos:transactions-jms 4.0.6
    org.springframework:spring-core 4.1.5.RELEASE
    .....

Useful commands:

./gradlew dependencyManagement | less
./gradlew dependencyManagement | grep <library-name>
like image 185
Gayan Weerakutti Avatar answered Sep 22 '25 22:09

Gayan Weerakutti