我在哪里可以找到`(*)`和`1.7.6->的文档?等级依赖项输出中的1.7.7 [英] Where can I find the document for `(*)` and `1.7.6 -> 1.7.7` in the output of `gradle dependencies`

查看:48
本文介绍了我在哪里可以找到`(*)`和`1.7.6->的文档?等级依赖项输出中的1.7.7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于带有简单 build.gradle 文件的gradle项目:

For a gradle project with simple build.gradle file:

apply plugin: 'java'

repositories.jcenter()

dependencies {
    compile "org.springframework.boot:spring-boot-starter-web:1.1.5.RELEASE"
    compile 'org.slf4j:slf4j-api:1.7.1'
}

当我运行 gradle依赖项时,它将显示:

When I run gradle dependencies, it will show:

:dependencies

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

archives - Configuration for archive artifacts.
No dependencies

compile - Compile classpath for source set 'main'.
+--- org.springframework.boot:spring-boot-starter-web:1.1.5.RELEASE
|    +--- org.springframework.boot:spring-boot-starter:1.1.5.RELEASE
|    |    +--- org.springframework.boot:spring-boot:1.1.5.RELEASE
|    |    |    +--- org.springframework:spring-core:4.0.6.RELEASE
|    |    |    |    \--- commons-logging:commons-logging:1.1.3
|    |    |    \--- org.springframework:spring-context:4.0.6.RELEASE
|    |    |         +--- org.springframework:spring-aop:4.0.6.RELEASE
|    |    |         |    +--- aopalliance:aopalliance:1.0
|    |    |         |    +--- org.springframework:spring-beans:4.0.6.RELEASE
|    |    |         |    |    \--- org.springframework:spring-core:4.0.6.RELEASE (*)
|    |    |         |    \--- org.springframework:spring-core:4.0.6.RELEASE (*)
|    |    |         +--- org.springframework:spring-beans:4.0.6.RELEASE (*)
|    |    |         +--- org.springframework:spring-core:4.0.6.RELEASE (*)
|    |    |         \--- org.springframework:spring-expression:4.0.6.RELEASE
|    |    |              \--- org.springframework:spring-core:4.0.6.RELEASE (*)
|    |    +--- org.springframework.boot:spring-boot-autoconfigure:1.1.5.RELEASE
|    |    |    \--- org.springframework.boot:spring-boot:1.1.5.RELEASE (*)
|    |    +--- org.springframework.boot:spring-boot-starter-logging:1.1.5.RELEASE
|    |    |    +--- org.slf4j:jcl-over-slf4j:1.7.7
|    |    |    |    \--- org.slf4j:slf4j-api:1.7.7
|    |    |    +--- org.slf4j:jul-to-slf4j:1.7.7
|    |    |    |    \--- org.slf4j:slf4j-api:1.7.7
|    |    |    +--- org.slf4j:log4j-over-slf4j:1.7.7
|    |    |    |    \--- org.slf4j:slf4j-api:1.7.7
|    |    |    \--- ch.qos.logback:logback-classic:1.1.2
|    |    |         +--- ch.qos.logback:logback-core:1.1.2
|    |    |         \--- org.slf4j:slf4j-api:1.7.6 -> 1.7.7
|    |    +--- org.springframework:spring-core:4.0.6.RELEASE (*)
|    |    \--- org.yaml:snakeyaml:1.13
|    +--- org.springframework.boot:spring-boot-starter-tomcat:1.1.5.RELEASE
|    |    +--- org.apache.tomcat.embed:tomcat-embed-core:7.0.54
|    |    +--- org.apache.tomcat.embed:tomcat-embed-el:7.0.54
|    |    \--- org.apache.tomcat.embed:tomcat-embed-logging-juli:7.0.54
|    +--- com.fasterxml.jackson.core:jackson-databind:2.3.3
|    |    +--- com.fasterxml.jackson.core:jackson-annotations:2.3.0
|    |    \--- com.fasterxml.jackson.core:jackson-core:2.3.3
|    +--- org.hibernate:hibernate-validator:5.0.3.Final
|    |    +--- javax.validation:validation-api:1.1.0.Final
|    |    +--- org.jboss.logging:jboss-logging:3.1.1.GA
|    |    \--- com.fasterxml:classmate:1.0.0
|    +--- org.springframework:spring-core:4.0.6.RELEASE (*)
|    +--- org.springframework:spring-web:4.0.6.RELEASE
|    |    +--- org.springframework:spring-aop:4.0.6.RELEASE (*)
|    |    +--- org.springframework:spring-beans:4.0.6.RELEASE (*)
|    |    +--- org.springframework:spring-context:4.0.6.RELEASE (*)
|    |    \--- org.springframework:spring-core:4.0.6.RELEASE (*)
|    \--- org.springframework:spring-webmvc:4.0.6.RELEASE
|         +--- org.springframework:spring-beans:4.0.6.RELEASE (*)
|         +--- org.springframework:spring-context:4.0.6.RELEASE (*)
|         +--- org.springframework:spring-core:4.0.6.RELEASE (*)
|         +--- org.springframework:spring-expression:4.0.6.RELEASE (*)
|         \--- org.springframework:spring-web:4.0.6.RELEASE (*)
\--- org.slf4j:slf4j-api:1.7.1 -> 1.7.7

尽管我已经阅读了一些文章,但我不确定两件事:

There are two things I'm not very sure, although I've read some articles:

  1. (*)表示此依赖项已经存在,可以在之前的步骤中下载
  2. 1.7.1->1.7.7 此依赖项声明为 1.7.1 ,但gradle决定在解决冲突后使用 1.7.7
  1. (*) means this dependency is already present and download in previous steps
  2. 1.7.1 -> 1.7.7 this dependency is declared as 1.7.1, but gradle decide to use 1.7.7 after conflict resolution

不确定我的理解是否正确,如何找到一些官方文件来解释它们?我搜索了gradle网站,但尚未找到

Not sure if my understanding correct, how can I find some official document to explain them? I searched the gradle website, but not find yet

推荐答案

虽然不是官方文档,但我在gradle中发现了以下内容

While not an official documentation, I found the following in gradle dependency-resolution-reporting.md design-doc:

  • 避免回归当前功能:
    • 省略子树(*)

但是请注意,此设计文档已于4月2日进行了更改(请参见更改 这里 )作为v2.5发行工作的一部分,并且此注释已从本文档中删除.

Note, however, that this design-doc was changed on April 2 (see change here) as part of the work on the release of v2.5 and this comment was removed from this document.

这篇关于我在哪里可以找到`(*)`和`1.7.6->的文档?等级依赖项输出中的1.7.7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆