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:
parent
39f10fdfb5
commit
f70d6fb411
|
|
@ -3,8 +3,12 @@ buildscript {
|
||||||
springBootVersion = '1.0.0.BUILD-SNAPSHOT'
|
springBootVersion = '1.0.0.BUILD-SNAPSHOT'
|
||||||
}
|
}
|
||||||
repositories {
|
repositories {
|
||||||
|
// NOTE: You should declare only repositories that you need here
|
||||||
mavenLocal()
|
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 {
|
dependencies {
|
||||||
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
|
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
|
||||||
|
|
@ -22,9 +26,12 @@ jar {
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
// NOTE: You should declare only repositories that you need here
|
||||||
mavenLocal()
|
mavenLocal()
|
||||||
mavenCentral()
|
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 {
|
dependencies {
|
||||||
|
|
|
||||||
|
|
@ -2,15 +2,15 @@
|
||||||
<settings defaultResolver="chain" />
|
<settings defaultResolver="chain" />
|
||||||
<resolvers>
|
<resolvers>
|
||||||
<chain name="chain">
|
<chain name="chain">
|
||||||
|
<!-- NOTE: You should declare only repositories that you need here -->
|
||||||
<filesystem name="local" local="true" m2compatible="true">
|
<filesystem name="local" local="true" m2compatible="true">
|
||||||
<artifact
|
<artifact pattern="${user.home}/.m2/[organisation]/[module]/[revision]/[module]-[revision].[ext]" />
|
||||||
pattern="${user.home}/.m2/[organisation]/[module]/[revision]/[module]-[revision].[ext]" />
|
<ivy pattern="${user.home}/.m2/[organisation]/[module]/[revision]/[module]-[revision].pom" />
|
||||||
<ivy
|
|
||||||
pattern="${user.home}/.m2/[organisation]/[module]/[revision]/[module]-[revision].pom" />
|
|
||||||
</filesystem>
|
</filesystem>
|
||||||
<ibiblio name="ibiblio" m2compatible="true" />
|
<ibiblio name="ibiblio" m2compatible="true" />
|
||||||
<ibiblio name="spring-milestones" m2compatible="true" root="http://repo.spring.io/libs-milestone"/>
|
<ibiblio name="spring-milestones" m2compatible="true" root="http://repo.spring.io/release" />
|
||||||
<ibiblio name="spring-snapshots" m2compatible="true" root="http://repo.spring.io/libs-snapshot"/>
|
<ibiblio name="spring-milestones" m2compatible="true" root="http://repo.spring.io/milestone" />
|
||||||
|
<ibiblio name="spring-snapshots" m2compatible="true" root="http://repo.spring.io/snapshot" />
|
||||||
</chain>
|
</chain>
|
||||||
</resolvers>
|
</resolvers>
|
||||||
</ivysettings>
|
</ivysettings>
|
||||||
|
|
@ -3,8 +3,12 @@ buildscript {
|
||||||
springBootVersion = '1.0.0.BUILD-SNAPSHOT'
|
springBootVersion = '1.0.0.BUILD-SNAPSHOT'
|
||||||
}
|
}
|
||||||
repositories {
|
repositories {
|
||||||
|
// NOTE: You should declare only repositories that you need here
|
||||||
mavenLocal()
|
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 {
|
dependencies {
|
||||||
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
|
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
|
||||||
|
|
@ -22,9 +26,12 @@ jar {
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
// NOTE: You should declare only repositories that you need here
|
||||||
mavenLocal()
|
mavenLocal()
|
||||||
mavenCentral()
|
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 {
|
dependencies {
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,12 @@ buildscript {
|
||||||
springBootVersion = '1.0.0.BUILD-SNAPSHOT'
|
springBootVersion = '1.0.0.BUILD-SNAPSHOT'
|
||||||
}
|
}
|
||||||
repositories {
|
repositories {
|
||||||
|
// NOTE: You should declare only repositories that you need here
|
||||||
mavenLocal()
|
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 {
|
dependencies {
|
||||||
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
|
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
|
||||||
|
|
@ -26,8 +30,12 @@ war {
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
// NOTE: You should declare only repositories that you need here
|
||||||
|
mavenLocal()
|
||||||
mavenCentral()
|
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" }
|
||||||
}
|
}
|
||||||
|
|
||||||
configurations {
|
configurations {
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,12 @@ buildscript {
|
||||||
springLoadedVersion = '1.1.5.RELEASE'
|
springLoadedVersion = '1.1.5.RELEASE'
|
||||||
}
|
}
|
||||||
repositories {
|
repositories {
|
||||||
|
// NOTE: You should declare only repositories that you need here
|
||||||
mavenLocal()
|
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 {
|
dependencies {
|
||||||
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
|
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
|
||||||
|
|
@ -27,8 +31,12 @@ jar {
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
// NOTE: You should declare only repositories that you need here
|
||||||
|
mavenLocal()
|
||||||
mavenCentral()
|
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 {
|
dependencies {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue