Browse Source

Merge branch '1.2.x'

pull/2860/merge
Andy Wilkinson 11 years ago
parent
commit
615af0834f
  1. 33
      spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc

33
spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc

@ -147,7 +147,16 @@ Maven, there is no "`super parent`" to import to share some configuration. @@ -147,7 +147,16 @@ Maven, there is no "`super parent`" to import to share some configuration.
----
apply plugin: 'java'
repositories { jcenter() }
repositories {
ifeval::["{spring-boot-repo}" != "release"]
maven { url "http://repo.spring.io/snapshot" }
maven { url "http://repo.spring.io/milestone" }
endif::[]
ifeval::["{spring-boot-repo}" == "release"]
jcenter()
endif::[]
}
dependencies {
compile("org.springframework.boot:spring-boot-starter-web:{spring-boot-version}")
}
@ -163,7 +172,16 @@ managed by Spring Boot: @@ -163,7 +172,16 @@ managed by Spring Boot:
[source,groovy,indent=0,subs="attributes"]
----
buildscript {
repositories { jcenter() }
repositories {
ifeval::["{spring-boot-repo}" != "release"]
maven { url "http://repo.spring.io/snapshot" }
maven { url "http://repo.spring.io/milestone" }
endif::[]
ifeval::["{spring-boot-repo}" == "release"]
jcenter()
endif::[]
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:{spring-boot-version}")
}
@ -172,7 +190,16 @@ managed by Spring Boot: @@ -172,7 +190,16 @@ managed by Spring Boot:
apply plugin: 'java'
apply plugin: 'spring-boot'
repositories { jcenter() }
repositories {
ifeval::["{spring-boot-repo}" != "release"]
maven { url "http://repo.spring.io/snapshot" }
maven { url "http://repo.spring.io/milestone" }
endif::[]
ifeval::["{spring-boot-repo}" == "release"]
jcenter()
endif::[]
}
dependencies {
compile("org.springframework.boot:spring-boot-starter-web")
testCompile("org.springframework.boot:spring-boot-starter-test")

Loading…
Cancel
Save