Declare all repositories in build samples

Update Gradle and Ant samples to consistently declare all repositories
(local, central, release, snapshot, milestone).

Fixes gh-426
This commit is contained in:
Phillip Webb
2014-03-25 16:00:55 -07:00
parent 39f10fdfb5
commit f70d6fb411
6 changed files with 65 additions and 35 deletions

View File

@@ -3,8 +3,12 @@ buildscript {
springBootVersion = '1.0.0.BUILD-SNAPSHOT'
}
repositories {
// NOTE: You should declare only repositories that you need here
mavenLocal()
maven { url "http://repo.spring.io/libs-snapshot" }
mavenCentral()
maven { url "http://repo.spring.io/release" }
maven { url "http://repo.spring.io/milestone" }
maven { url "http://repo.spring.io/snapshot" }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
@@ -22,9 +26,12 @@ jar {
}
repositories {
// NOTE: You should declare only repositories that you need here
mavenLocal()
mavenCentral()
maven { url "http://repo.spring.io/libs-snapshot" }
maven { url "http://repo.spring.io/release" }
maven { url "http://repo.spring.io/milestone" }
maven { url "http://repo.spring.io/snapshot" }
}
dependencies {