码迷,mamicode.com
首页 > 编程语言 > 详细

gradle dependencies 查找jar导入OR解决jar冲突

时间:2020-07-05 23:23:58      阅读:92      评论:0      收藏:0      [点我收藏+]

标签:yaml   The   mbed   ring   roc   ons   key   sock   jboss   

在gradle项目中,使用gradle dependencies先查询jar包的导入关系。然后找到导入的jar加入到项目中来。解决jar冲突等问题。

类似格式如下:

annotationProcessor - Annotation processors and their dependencies for source set ‘main‘.
\--- org.projectlombok:lombok:1.18.8

apiElements - API elements for main. (n)
No dependencies

archives - Configuration for archive artifacts.
No dependencies
+--- javax.servlet:javax.servlet-api:4.0.1
+--- org.springframework.boot:spring-boot-starter-web:1.5.21.RELEASE
| +--- org.springframework.boot:spring-boot-starter:1.5.21.RELEASE
| | +--- org.springframework.boot:spring-boot:1.5.21.RELEASEpile > Resolve dependencies of :admin-api:detachedCon
| | | +--- org.springframework:spring-core:4.3.24.RELEASE
| | | | \--- commons-logging:commons-logging:1.2
| | | \--- org.springframework:spring-context:4.3.24.RELEASE
| | | +--- org.springframework:spring-aop:4.3.24.RELEASE
| | | | +--- org.springframework:spring-beans:4.3.24.RELEASE
| | | | | \--- org.springframework:spring-core:4.3.24.RELEASE (*)
| | | | \--- org.springframework:spring-core:4.3.24.RELEASE (*)
| | | +--- org.springframework:spring-beans:4.3.24.RELEASE (*)
| | | +--- org.springframework:spring-core:4.3.24.RELEASE (*)
| | | \--- org.springframework:spring-expression:4.3.24.RELEASE
| | | \--- org.springframework:spring-core:4.3.24.RELEASE (*)
| | +--- org.springframework.boot:spring-boot-autoconfigure:1.5.21.RELEASE
| | | \--- org.springframework.boot:spring-boot:1.5.21.RELEASE (*)
| | +--- org.springframework.boot:spring-boot-starter-logging:1.5.21.RELEASE
| | | +--- ch.qos.logback:logback-classic:1.1.11
| | | | +--- ch.qos.logback:logback-core:1.1.11
| | | | \--- org.slf4j:slf4j-api:1.7.22 -> 1.7.26
| | | +--- org.slf4j:jcl-over-slf4j:1.7.26
| | | | \--- org.slf4j:slf4j-api:1.7.26
| | | +--- org.slf4j:jul-to-slf4j:1.7.26
| | | | \--- org.slf4j:slf4j-api:1.7.26
| | | \--- org.slf4j:log4j-over-slf4j:1.7.26
| | | \--- org.slf4j:slf4j-api:1.7.26
| | +--- org.springframework:spring-core:4.3.24.RELEASE (*)
| | \--- org.yaml:snakeyaml:1.17
| +--- org.springframework.boot:spring-boot-starter-tomcat:1.5.21.RELEASE
| | +--- org.apache.tomcat.embed:tomcat-embed-core:8.5.40
| | | \--- org.apache.tomcat:tomcat-annotations-api:8.5.40
| | +--- org.apache.tomcat.embed:tomcat-embed-el:8.5.40
| | \--- org.apache.tomcat.embed:tomcat-embed-websocket:8.5.40
| | \--- org.apache.tomcat.embed:tomcat-embed-core:8.5.40 (*)
| +--- org.hibernate:hibernate-validator:5.3.6.Final
| | +--- javax.validation:validation-api:1.1.0.Final
| | +--- org.jboss.logging:jboss-logging:3.3.0.Final -> 3.3.2.Final
| | \--- com.fasterxml:classmate:1.3.1 -> 1.3.4
| +--- com.fasterxml.jackson.core:jackson-databind:2.8.11.3
| | +--- com.fasterxml.jackson.core:jackson-annotations:2.8.0
| | \--- com.fasterxml.jackson.core:jackson-core:2.8.10 -> 2.8.11
| +--- org.springframework:spring-web:4.3.24.RELEASE
| | +--- org.springframework:spring-aop:4.3.24.RELEASE (*)
| | +--- org.springframework:spring-beans:4.3.24.RELEASE (*)
| | +--- org.springframework:spring-context:4.3.24.RELEASE (*)
| | \--- org.springframework:spring-core:4.3.24.RELEASE (*)
| \--- org.springframework:spring-webmvc:4.3.24.RELEASE
| +--- org.springframework:spring-aop:4.3.24.RELEASE (*)
| +--- org.springframework:spring-beans:4.3.24.RELEASE (*)
| +--- org.springframework:spring-context:4.3.24.RELEASE (*)
| +--- org.springframework:spring-core:4.3.24.RELEASE (*)
| +--- org.springframework:spring-expression:4.3.24.RELEASE (*)
| \--- org.springframework:spring-web:4.3.24.RELEASE (*)

 

gradle dependencies 查找jar导入OR解决jar冲突

标签:yaml   The   mbed   ring   roc   ons   key   sock   jboss   

原文地址:https://www.cnblogs.com/oktokeep/p/13252229.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!