build.gradle 880 字节
Newer Older
G
Greg Turnquist 已提交
1 2
buildscript {
    repositories {
3
        maven { url "http://repo.spring.io/libs-snapshot" }
G
Greg Turnquist 已提交
4 5 6
        mavenLocal()
    }
    dependencies {
7
        classpath("org.springframework.boot:spring-boot-gradle-plugin:1.0.0.RC2")
G
Greg Turnquist 已提交
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
    }
}

apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'spring-boot'

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

repositories {
    mavenCentral()
23
    maven { url "http://repo.spring.io/libs-snapshot" }
G
Greg Turnquist 已提交
24 25 26
}

dependencies {
27
    compile("org.springframework.boot:spring-boot-starter-web:1.0.0.RC2") {
28 29
        exclude module: "spring-boot-starter-tomcat"
    }
30 31 32
    compile("org.springframework.boot:spring-boot-starter-jetty:1.0.0.RC2")
    compile("org.springframework.boot:spring-boot-starter-actuator:1.0.0.RC2")
    testCompile("junit:junit")
G
Greg Turnquist 已提交
33 34 35
}

task wrapper(type: Wrapper) {
G
Greg Turnquist 已提交
36
    gradleVersion = '1.11'
G
Greg Turnquist 已提交
37
}