2013-12-27 16:35:19 +08:00
|
|
|
buildscript {
|
|
|
|
ext {
|
2016-09-21 04:53:40 +08:00
|
|
|
springBootVersion = '1.3.9.BUILD-SNAPSHOT'
|
2015-08-22 14:41:11 +08:00
|
|
|
springLoadedVersion = '1.2.4.RELEASE'
|
2013-12-27 16:35:19 +08:00
|
|
|
}
|
2014-02-19 13:57:47 +08:00
|
|
|
repositories {
|
2014-03-26 07:00:55 +08:00
|
|
|
// NOTE: You should declare only repositories that you need here
|
2014-02-19 13:57:47 +08:00
|
|
|
mavenLocal()
|
2014-03-26 07:00:55 +08:00
|
|
|
mavenCentral()
|
2019-03-17 00:00:11 +08:00
|
|
|
maven { url "https://repo.spring.io/release" }
|
|
|
|
maven { url "https://repo.spring.io/milestone" }
|
|
|
|
maven { url "https://repo.spring.io/snapshot" }
|
2014-02-19 13:57:47 +08:00
|
|
|
}
|
|
|
|
dependencies {
|
|
|
|
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
|
2014-04-09 18:50:00 +08:00
|
|
|
classpath("org.springframework:springloaded:${springLoadedVersion}")
|
2014-02-19 13:57:47 +08:00
|
|
|
}
|
2013-12-27 16:35:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'eclipse'
|
|
|
|
apply plugin: 'idea'
|
2015-04-20 20:51:44 +08:00
|
|
|
apply plugin: 'spring-boot'
|
2013-12-27 16:35:19 +08:00
|
|
|
|
2014-06-21 05:24:19 +08:00
|
|
|
springBoot {
|
|
|
|
classifier = 'exec'
|
|
|
|
}
|
|
|
|
|
2013-12-27 16:35:19 +08:00
|
|
|
jar {
|
2014-03-18 17:29:35 +08:00
|
|
|
baseName = 'spring-boot-sample-web-ui'
|
2014-03-20 07:50:55 +08:00
|
|
|
version = '0.0.0'
|
2013-12-27 16:35:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
2014-03-26 07:00:55 +08:00
|
|
|
// NOTE: You should declare only repositories that you need here
|
|
|
|
mavenLocal()
|
2014-02-19 13:57:47 +08:00
|
|
|
mavenCentral()
|
2019-03-17 00:00:11 +08:00
|
|
|
maven { url "https://repo.spring.io/release" }
|
|
|
|
maven { url "https://repo.spring.io/milestone" }
|
|
|
|
maven { url "https://repo.spring.io/snapshot" }
|
2013-12-27 16:35:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
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")
|
2013-12-27 16:35:19 +08:00
|
|
|
}
|
|
|
|
|
2014-02-19 13:57:47 +08:00
|
|
|
task wrapper(type: Wrapper) { gradleVersion = '1.6' }
|