gradle学习

maven repository

1
2
3
4
5
repositories {
maven {
url 'http://maven.aliyun.com/nexus/content/groups/public'
}
}

spring mvc 配置

1
2
3
4
5
6
7
8
9
10
11
dependencies {
//Version
def springVersion = "4.3.7.RELEASE"
def mybatisVersion = "3.4.2"

// https://mvnrepository.com/artifact/org.springframework/spring-webmvc
compile group: 'org.springframework', name: 'spring-webmvc', version: '$springVersion'
// https://mvnrepository.com/artifact/org.mybatis/mybatis
compile group: 'org.mybatis', name: 'mybatis', version: '$mybatisVersion'
testCompile group: 'junit', name: 'junit', version: '4.12'
}