As far as I know, gradle requires a version number when setting up dependencies, but partial wildcards are allowed. For example, if I want Guava, I cannot do this because it fails:
compile('com.google.guava:guava')
It should be (as an example):
compile('com.google.guava:guava:21.0')
However, I am studying Spring, which has the following:
compile("org.springframework.boot:spring-boot-starter")
compile("org.springframework:spring-web")
compile("com.fasterxml.jackson.core:jackson-databind")
How do these dependencies work without version?
This is because of the following, but I thought that these lines are only needed for my plugin 'org.springframework.boot':
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.4.3.RELEASE")
}
}
source
share