Commit c09ca17c authored by Phillip Webb's avatar Phillip Webb

Update gradle example builds

parent d137bcd8
buildscript { buildscript {
ext { ext {
springBootVersion = '0.5.0.BUILD-SNAPSHOT' springBootVersion = '1.0.0.BUILD-SNAPSHOT'
} }
repositories { repositories {
mavenLocal() mavenLocal()
...@@ -18,10 +18,11 @@ apply plugin: 'spring-boot' ...@@ -18,10 +18,11 @@ apply plugin: 'spring-boot'
jar { jar {
baseName = 'spring-boot-sample-actuator' baseName = 'spring-boot-sample-actuator'
version = '0.5.0' version = '1.0.0'
} }
repositories { repositories {
mavenLocal()
mavenCentral() mavenCentral()
maven { url "http://repo.springsource.org/libs-snapshot" } maven { url "http://repo.springsource.org/libs-snapshot" }
} }
...@@ -30,10 +31,10 @@ dependencies { ...@@ -30,10 +31,10 @@ dependencies {
configurations { configurations {
insecure.exclude module: 'spring-boot-starter-security' insecure.exclude module: 'spring-boot-starter-security'
} }
compile("org.springframework.boot:spring-boot-starter-web:${springBootVersion}") compile("org.springframework.boot:spring-boot-starter-web")
compile("org.springframework.boot:spring-boot-starter-actuator:${springBootVersion}") compile("org.springframework.boot:spring-boot-starter-actuator")
compile("org.springframework.boot:spring-boot-starter-security:${springBootVersion}") compile("org.springframework.boot:spring-boot-starter-security")
testCompile("junit:junit:4.11") testCompile("junit:junit")
insecure configurations.runtime insecure configurations.runtime
} }
......
buildscript { buildscript {
ext { ext {
springBootVersion = '0.5.0.BUILD-SNAPSHOT' springBootVersion = '1.0.0.BUILD-SNAPSHOT'
} }
repositories { repositories {
mavenLocal() mavenLocal()
...@@ -19,17 +19,18 @@ apply plugin: 'spring-boot' ...@@ -19,17 +19,18 @@ apply plugin: 'spring-boot'
jar { jar {
baseName = 'spring-boot-sample-simple' baseName = 'spring-boot-sample-simple'
version = '0.5.0' version = '1.0.0'
} }
repositories { repositories {
mavenLocal()
mavenCentral() mavenCentral()
maven { url "http://repo.springsource.org/libs-snapshot" } maven { url "http://repo.springsource.org/libs-snapshot" }
} }
dependencies { dependencies {
compile("org.springframework.boot:spring-boot-starter:${springBootVersion}") compile("org.springframework.boot:spring-boot-starter")
testCompile("org.springframework.boot:spring-boot-starter-test:${springBootVersion}") testCompile("org.springframework.boot:spring-boot-starter-test")
} }
task wrapper(type: Wrapper) { task wrapper(type: Wrapper) {
......
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