mirror of
https://gitee.com/dcren/initializr.git
synced 2025-12-22 03:19:57 +08:00
52 lines
1.2 KiB
Plaintext
52 lines
1.2 KiB
Plaintext
|
|
buildscript {
|
||
|
|
ext {
|
||
|
|
springBootVersion = '1.2.3.RELEASE'
|
||
|
|
kotlinVersion = '1.0.1'
|
||
|
|
}
|
||
|
|
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')
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
eclipse {
|
||
|
|
classpath {
|
||
|
|
containers.remove('org.eclipse.jdt.launching.JRE_CONTAINER')
|
||
|
|
containers 'org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8'
|
||
|
|
}
|
||
|
|
}
|