initializr/initializr-generator/src/test/resources/project/kotlin/war/build.gradle.gen

45 lines
1.1 KiB
Plaintext
Raw Normal View History

2016-07-12 20:42:41 +08:00
buildscript {
ext {
kotlinVersion = '1.0.1'
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}")
classpath("org.jetbrains.kotlin:kotlin-allopen:${kotlinVersion}")
2016-07-12 20:42:41 +08:00
}
}
apply plugin: 'kotlin'
apply plugin: 'kotlin-spring'
2016-07-12 20:42:41 +08:00
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')
}