Dependencies 什么';2个渐变依赖项之间的区别是什么

Dependencies 什么';2个渐变依赖项之间的区别是什么,dependencies,build.gradle,Dependencies,Build.gradle,两者之间有什么区别 compile group: 'org.springframework.data', name: 'spring-data-jpa', version: '1.11.6.RELEASE' 及 不考虑版本('1.11.6.发行版')? 谢谢。Gradle中的远程依赖项的结构如下: compile 'group:name:version' 或者使用以下替代语法: compile group: 'xxx', name: 'xxxxx', version: 'xxxx' 然后您

两者之间有什么区别

compile group: 'org.springframework.data',
name: 'spring-data-jpa',
version: '1.11.6.RELEASE'

不考虑
版本('1.11.6.发行版')

谢谢。

Gradle中的远程依赖项的结构如下:

compile 'group:name:version'
或者使用以下替代语法:

compile group: 'xxx', name: 'xxxxx', version: 'xxxx'
然后您可以使用:

dependencies { 
    compile "org.springframework.data:spring-data-jpa:1.11.6.RELEASE" 
}

dependencies { 
    compile "org.springframework.data:spring-data-jpa:1.11.6.RELEASE" 
}
dependencies { 
    compile group: 'org.springframework.data', name: 'spring-data-jpa', version: '1.11.6.RELEASE'
}