spring-boot/spring-boot-samples/spring-boot-sample-web-ui/build.gradle

53 lines
1.3 KiB
Groovy
Raw Normal View History

buildscript {
ext {
2015-02-27 09:01:02 +08:00
springBootVersion = '1.3.0.BUILD-SNAPSHOT'
2014-05-01 00:51:13 +08:00
springLoadedVersion = '1.2.0.RELEASE'
}
2014-02-19 13:57:47 +08:00
repositories {
// NOTE: You should declare only repositories that you need here
2014-02-19 13:57:47 +08:00
mavenLocal()
mavenCentral()
maven { url "http://repo.spring.io/release" }
maven { url "http://repo.spring.io/milestone" }
maven { url "http://repo.spring.io/snapshot" }
2014-02-19 13:57:47 +08:00
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath("org.springframework:springloaded:${springLoadedVersion}")
2014-02-19 13:57:47 +08:00
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot.spring-boot'
mainClassName = "sample.ui.SampleWebUiApplication"
springBoot {
classifier = 'exec'
}
jar {
baseName = 'spring-boot-sample-web-ui'
version = '0.0.0'
}
repositories {
// NOTE: You should declare only repositories that you need here
mavenLocal()
2014-02-19 13:57:47 +08:00
mavenCentral()
maven { url "http://repo.spring.io/release" }
maven { url "http://repo.spring.io/milestone" }
maven { url "http://repo.spring.io/snapshot" }
}
dependencies {
2014-02-19 13:57:47 +08:00
compile("org.springframework.boot:spring-boot-starter-thymeleaf")
compile("org.hibernate:hibernate-validator")
testCompile("org.springframework.boot:spring-boot-starter-test")
}
2014-02-19 13:57:47 +08:00
task wrapper(type: Wrapper) { gradleVersion = '1.6' }