Files
initializr/templates/starter-build.gradle
2014-05-06 17:26:21 -07:00

41 lines
1.0 KiB
Groovy

buildscript {
ext {
springBootVersion = '${bootVersion}'
}
repositories {
mavenCentral()<% if (!bootVersion.contains("RELEASE")) { %>
maven { url "http://repo.spring.io/snapshot" }
maven { url "http://repo.spring.io/milestone" }
<% } %>
}
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 {
mavenCentral()<% if (!bootVersion.contains("RELEASE")) { %>
maven { url "http://repo.spring.io/snapshot" }
maven { url "http://repo.spring.io/milestone" }
<% } %>
}
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.12'
}