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

  • 相关阅读:
    maven
    Antd@4.x Form的常用方法
    数组排序 js
    链式调用
    react 非登陆页面得公共部分配置方法
    react异常处理
    Field 输入框的bug
    promise的用法
    异步return公共数据方法,
    小程序打开pdf文件
  • 原文地址:https://www.cnblogs.com/oktokeep/p/13252229.html
Copyright © 2020-2023  润新知