前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
社区首页 >专栏 >gradle dependencies 查找jar导入OR解决jar冲突

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

作者头像
oktokeep
发布2024-10-09 08:01:41
发布2024-10-09 08:01:41
1500
举报
文章被收录于专栏:第三方工具第三方工具

在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 (*)

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2020-07-05,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档