2014-01-28 14:37:23 +00:00
|
|
|
buildscript {
|
|
|
|
ext {
|
2014-04-01 17:22:18 +01:00
|
|
|
springBootVersion = '${bootVersion}'
|
2014-01-28 14:37:23 +00:00
|
|
|
}
|
|
|
|
repositories {
|
2014-04-01 19:46:00 +01:00
|
|
|
mavenCentral()<% if (!bootVersion.contains("RELEASE")) { %>
|
2014-01-28 14:37:23 +00:00
|
|
|
maven { url "http://repo.spring.io/snapshot" }
|
|
|
|
maven { url "http://repo.spring.io/milestone" }
|
2014-04-01 17:50:07 +01:00
|
|
|
<% } %>
|
2014-01-28 14:37:23 +00:00
|
|
|
}
|
|
|
|
dependencies {
|
|
|
|
classpath("org.springframework.boot:spring-boot-gradle-plugin:\${springBootVersion}")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'eclipse'
|
|
|
|
apply plugin: 'idea'
|
|
|
|
apply plugin: 'spring-boot'
|
|
|
|
|
|
|
|
jar {
|
|
|
|
baseName = '${artifactId}'
|
|
|
|
version = '${version}'
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
2014-04-01 17:50:07 +01:00
|
|
|
mavenCentral()<% if (!bootVersion.contains("RELEASE")) { %>
|
2014-01-28 14:37:23 +00:00
|
|
|
maven { url "http://repo.spring.io/snapshot" }
|
|
|
|
maven { url "http://repo.spring.io/milestone" }
|
2014-04-01 17:50:07 +01:00
|
|
|
<% } %>
|
2014-01-28 14:37:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {<% styles.each { %>
|
|
|
|
compile("org.springframework.boot:spring-boot-starter${it}:\${springBootVersion}")<% } %>
|
|
|
|
testCompile("org.springframework.boot:spring-boot-starter-test:\${springBootVersion}")
|
|
|
|
}
|
|
|
|
|
|
|
|
task wrapper(type: Wrapper) {
|
|
|
|
gradleVersion = '1.6'
|
|
|
|
}
|