zoukankan      html  css  js  c++  java
  • gradle dependencies 查找jar导入OR解决jar冲突

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

  • 相关阅读:
    ELK学习总结(2-1)mavel -》sense 和 索引初始化
    ELK学习总结(1-3)倒排索引
    java基础总结(1)安装jdk
    ELK学习总结(1-2)安装ElasticSearch
    T410升级笔记
    CURL学习总结(1)
    restful架构风格设计准则(二)以资源为中心,一个url
    GIT入门笔记(18)- 标签创建和管理
    GIT入门笔记(17)- 创建分支dev_lsq, 提交到代码
    GIT入门笔记(16)- 分支创建和管理
  • 原文地址:https://www.cnblogs.com/oktokeep/p/13252229.html
Copyright © 2011-2022 走看看