gradle

安装 配置环境变量 gradle -v

build.gradle

apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'war'
apply plugin: 'jetty'

sourceCompatibility = 1.8
version = '1.0'
jar {
    manifest {
        attributes 'Implementation-Title': 'Gradle Quickstart',
                   'Implementation-Version': version
    }
}


repositories {
    mavenCentral()
}


dependencies {
    compile group: 'org.springframework', name: 'spring-context', version: '4.2.5.RELEASE'
     compile group: 'org.springframework', name: 'spring-webmvc', version: '4.2.5.RELEASE'
     compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.7.3'
}

test {
    systemProperties 'property': 'value'
}

uploadArchives {
    repositories {
       flatDir {
           dirs 'repos'
       }
    }
}



httpPort = 4000
stopPort = 9451
stopKey = 'foo'

http://wiki.jikexueyuan.com/project/gradle/

spring mvc view resolver http://jinnianshilongnian.iteye.com/blog/2107205

results matching ""

    No results matching ""