Add support for new starters

This commit is contained in:
Dave Syer 2014-01-28 14:37:23 +00:00
parent 4aae861ed9
commit 0e32f8aa1e
2 changed files with 42 additions and 0 deletions

View File

@ -29,6 +29,9 @@ class MainController {
model["styles"] << [name:"AMQP", value:"amqp"]
model["styles"] << [name:"AOP", value:"aop"]
model["styles"] << [name:"JPA", value:"data-jpa"]
model["styles"] << [name:"Redis", value:"redis"]
model["styles"] << [name:"Remote Shell", value:"shell-remote"]
model["styles"] << [name:"Mobile", value:"mobile"]
model["types"] = [[name:"Maven POM", value:"pom.xml", selected: false], [name:"Maven Project", value:"starter.zip", selected: true], [name:"Gradle Build", value:"build.gradle", selected: false]]
template "home.html", model
}

View File

@ -0,0 +1,39 @@
buildscript {
ext {
springBootVersion = '1.0.0.BUILD-SNAPSHOT'
}
repositories {
mavenLocal()
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()
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.6'
}