Commit 35a840a3 authored by Phillip Webb's avatar Phillip Webb

Replace mavenCentral() with jcenter() in docs

Fixes gh-1373
parent 1697174c
...@@ -344,7 +344,7 @@ named ``providedRuntime'', e.g: ...@@ -344,7 +344,7 @@ named ``providedRuntime'', e.g:
} }
repositories { repositories {
mavenCentral() jcenter()
maven { url "http://repo.spring.io/libs-snapshot" } maven { url "http://repo.spring.io/libs-snapshot" }
} }
......
...@@ -182,7 +182,7 @@ Here is a typical `build.gradle` file: ...@@ -182,7 +182,7 @@ Here is a typical `build.gradle` file:
---- ----
buildscript { buildscript {
repositories { repositories {
mavenCentral() jcenter()
ifndef::release[] ifndef::release[]
maven { url "http://repo.spring.io/snapshot" } maven { url "http://repo.spring.io/snapshot" }
maven { url "http://repo.spring.io/milestone" } maven { url "http://repo.spring.io/milestone" }
...@@ -202,7 +202,7 @@ endif::release[] ...@@ -202,7 +202,7 @@ endif::release[]
} }
repositories { repositories {
mavenCentral() jcenter()
ifndef::release[] ifndef::release[]
maven { url "http://repo.spring.io/snapshot" } maven { url "http://repo.spring.io/snapshot" }
maven { url "http://repo.spring.io/milestone" } maven { url "http://repo.spring.io/milestone" }
......
...@@ -1466,7 +1466,7 @@ To configure IntelliJ correctly you can use the `idea` Gradle plugin: ...@@ -1466,7 +1466,7 @@ To configure IntelliJ correctly you can use the `idea` Gradle plugin:
[source,groovy,indent=0,subs="verbatim,attributes"] [source,groovy,indent=0,subs="verbatim,attributes"]
---- ----
buildscript { buildscript {
repositories { mavenCentral() } repositories { jcenter() }
dependencies { dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:{spring-boot-version}" classpath "org.springframework.boot:spring-boot-gradle-plugin:{spring-boot-version}"
classpath 'org.springframework:springloaded:1.2.0.RELEASE' classpath 'org.springframework:springloaded:1.2.0.RELEASE'
......
...@@ -140,7 +140,7 @@ Maven, there is no ``super parent'' to import to share some configuration. ...@@ -140,7 +140,7 @@ Maven, there is no ``super parent'' to import to share some configuration.
---- ----
apply plugin: 'java' apply plugin: 'java'
repositories { mavenCentral() } repositories { jcenter() }
dependencies { dependencies {
compile("org.springframework.boot:spring-boot-starter-web:{spring-boot-version}") compile("org.springframework.boot:spring-boot-starter-web:{spring-boot-version}")
} }
...@@ -155,7 +155,7 @@ for ``blessed'' dependencies>>: ...@@ -155,7 +155,7 @@ for ``blessed'' dependencies>>:
[source,groovy,indent=0,subs="attributes"] [source,groovy,indent=0,subs="attributes"]
---- ----
buildscript { buildscript {
repositories { mavenCentral() } repositories { jcenter() }
dependencies { dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:{spring-boot-version}") classpath("org.springframework.boot:spring-boot-gradle-plugin:{spring-boot-version}")
} }
...@@ -164,7 +164,7 @@ for ``blessed'' dependencies>>: ...@@ -164,7 +164,7 @@ for ``blessed'' dependencies>>:
apply plugin: 'java' apply plugin: 'java'
apply plugin: 'spring-boot' apply plugin: 'spring-boot'
repositories { mavenCentral() } repositories { jcenter() }
dependencies { dependencies {
compile("org.springframework.boot:spring-boot-starter-web") compile("org.springframework.boot:spring-boot-starter-web")
testCompile("org.springframework.boot:spring-boot-starter-test") testCompile("org.springframework.boot:spring-boot-starter-test")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment