我在哪里可以找到`(*)`和`1.7.6 - >的文档? 1.7.7`在`gradle dependencies`的输出中

时间:2015-04-28 10:08:22

标签: gradle dependencies

对于包含简单build.gradle文件的gradle项目:

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 dependencies时,它会显示:

: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

我有两件事我不太确定,虽然我读了一些文章:

  1. (*)表示此依赖关系已存在并在之前的步骤中下载
  2. 1.7.1 -> 1.7.7此依赖关系声明为1.7.1,但gradle决定在解决冲突后使用1.7.7
  3. 不确定我的理解是否正确,我怎样才能找到一些官方文件来解释它们?我搜索了gradle网站,但还没找到

1 个答案:

答案 0 :(得分:2)

虽然不是官方文档,但我在gradle dependency-resolution-reporting.md design-doc:

中找到了以下内容
  
      
  • 避免回归当前功能:   
        
    • 省略子树(*)
    •   
  •   

但请注意,此设计文档已于4月2日更改(请参阅更改here),作为v2.5发布工作的一部分,此评论已从此文档中删除。