2013-12-10 19:06:59 +08:00
|
|
|
buildscript {
|
2014-01-15 19:23:07 +08:00
|
|
|
ext {
|
2016-09-21 23:05:50 +08:00
|
|
|
springBootVersion = '2.0.0.BUILD-SNAPSHOT'
|
2014-01-15 19:23:07 +08:00
|
|
|
}
|
2014-03-20 07:50:55 +08:00
|
|
|
repositories {
|
2014-03-26 07:00:55 +08:00
|
|
|
// NOTE: You should declare only repositories that you need here
|
2014-03-20 07:50:55 +08:00
|
|
|
mavenLocal()
|
2014-03-26 07:00:55 +08:00
|
|
|
mavenCentral()
|
|
|
|
maven { url "http://repo.spring.io/release" }
|
|
|
|
maven { url "http://repo.spring.io/milestone" }
|
|
|
|
maven { url "http://repo.spring.io/snapshot" }
|
2014-03-20 07:50:55 +08:00
|
|
|
}
|
|
|
|
dependencies {
|
|
|
|
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
|
|
|
|
}
|
2013-12-10 19:06:59 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'eclipse'
|
|
|
|
apply plugin: 'idea'
|
2016-10-05 21:54:23 +08:00
|
|
|
apply plugin: 'org.springframework.boot'
|
2017-04-04 00:05:08 +08:00
|
|
|
apply plugin: 'io.spring.dependency-management'
|
2013-12-10 19:06:59 +08:00
|
|
|
|
2016-03-24 01:58:54 +08:00
|
|
|
group = 'org.springframework.boot'
|
|
|
|
version = springBootVersion
|
|
|
|
|
2013-12-10 19:06:59 +08:00
|
|
|
repositories {
|
2014-03-26 07:00:55 +08:00
|
|
|
// NOTE: You should declare only repositories that you need here
|
2014-03-20 07:50:55 +08:00
|
|
|
mavenLocal()
|
|
|
|
mavenCentral()
|
2014-03-26 07:00:55 +08:00
|
|
|
maven { url "http://repo.spring.io/release" }
|
|
|
|
maven { url "http://repo.spring.io/milestone" }
|
|
|
|
maven { url "http://repo.spring.io/snapshot" }
|
2013-12-10 19:06:59 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2014-03-20 07:50:55 +08:00
|
|
|
compile("org.springframework.boot:spring-boot-starter-actuator")
|
2014-05-13 22:40:55 +08:00
|
|
|
compile("org.springframework.boot:spring-boot-starter-jdbc")
|
2014-03-20 07:50:55 +08:00
|
|
|
compile("org.springframework.boot:spring-boot-starter-security")
|
|
|
|
compile("org.springframework.boot:spring-boot-starter-web")
|
2016-12-31 00:57:14 +08:00
|
|
|
runtime("com.h2database:h2")
|
|
|
|
|
|
|
|
compileOnly('org.springframework.boot:spring-boot-configuration-processor')
|
2014-05-15 16:15:35 +08:00
|
|
|
|
2014-03-20 07:50:55 +08:00
|
|
|
testCompile("org.springframework.boot:spring-boot-starter-test")
|
2013-12-10 19:06:59 +08:00
|
|
|
}
|
2016-03-24 01:58:54 +08:00
|
|
|
|
|
|
|
springBoot {
|
|
|
|
buildInfo()
|
2016-07-19 08:52:35 +08:00
|
|
|
}
|