build.gradle 833 字节
Newer Older
G
Greg Turnquist 已提交
1 2
buildscript {
    repositories {
3
        mavenCentral()
G
Greg Turnquist 已提交
4 5
    }
    dependencies {
6
        classpath("org.springframework.boot:spring-boot-gradle-plugin:1.5.2.RELEASE")
G
Greg Turnquist 已提交
7 8 9 10 11 12
    }
}

apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
13
apply plugin: 'org.springframework.boot'
G
Greg Turnquist 已提交
14 15 16 17 18 19 20 21 22 23

jar {
    baseName = 'gs-spring-boot'
    version =  '0.1.0'
}

repositories {
    mavenCentral()
}

G
Greg Turnquist 已提交
24 25
sourceCompatibility = 1.8
targetCompatibility = 1.8
26

G
Greg Turnquist 已提交
27
dependencies {
28 29 30 31 32 33 34 35 36
    // tag::jetty[]
    compile("org.springframework.boot:spring-boot-starter-web") {
        exclude module: "spring-boot-starter-tomcat"
    }
    compile("org.springframework.boot:spring-boot-starter-jetty")
    // end::jetty[]
    // tag::actuator[]
    compile("org.springframework.boot:spring-boot-starter-actuator")
    // end::actuator[]
37
    testCompile("junit:junit")
G
Greg Turnquist 已提交
38 39
}