2016-07-12 20:42:41 +08:00
|
|
|
buildscript {
|
|
|
|
ext {
|
|
|
|
kotlinVersion = '1.0.1'
|
2016-07-12 19:39:11 +08:00
|
|
|
springBootVersion = '1.2.3.RELEASE'
|
2016-07-12 20:42:41 +08:00
|
|
|
}
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
dependencies {
|
|
|
|
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
|
|
|
|
classpath('io.spring.gradle:dependency-management-plugin:0.5.1.RELEASE')
|
|
|
|
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'kotlin'
|
|
|
|
apply plugin: 'eclipse-wtp'
|
|
|
|
apply plugin: 'spring-boot'
|
|
|
|
apply plugin: 'io.spring.dependency-management'
|
|
|
|
apply plugin: 'war'
|
|
|
|
|
|
|
|
|
|
|
|
war {
|
|
|
|
baseName = 'demo'
|
|
|
|
version = '0.0.1-SNAPSHOT'
|
|
|
|
}
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
targetCompatibility = 1.8
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
configurations {
|
|
|
|
providedRuntime
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile('org.springframework.boot:spring-boot-starter-web')
|
|
|
|
compile("org.jetbrains.kotlin:kotlin-stdlib:${kotlinVersion}")
|
|
|
|
providedRuntime('org.springframework.boot:spring-boot-starter-tomcat')
|
|
|
|
testCompile('org.springframework.boot:spring-boot-starter-test')
|
|
|
|
}
|