buildscript { repositories { mavenCentral() maven {url "http://maven.aliyun.com/nexus/content/groups/public/"} } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:1.5.3.RELEASE") } } apply plugin: 'org.springframework.boot' version = '1.0' sourceCompatibility = 1.8 repositories { mavenCentral() maven {url "http://maven.aliyun.com/nexus/content/groups/public/"} } dependencies { compile('org.springframework.boot:spring-boot-starter') compile("org.springframework.boot:spring-boot-starter-jdbc") compile("org.springframework.boot:spring-boot-starter-web") compile("org.springframework.boot:spring-boot-starter-aop") compile 'org.jboss.spec.javax.el:jboss-el-api_3.0_spec:1.0.0.Final' compile 'commons-codec:commons-codec:1.6' compile 'org.mybatis.spring.boot:mybatis-spring-boot-starter:1.3.1' compile("org.javassist:javassist") compile("org.jboss.netty:netty:3.2.10.Final") compile 'com.github.pagehelper:pagehelper:4.1.1' compile 'com.alibaba:fastjson:1.2.23' compile 'com.alibaba:druid:1.0.29' compile ('com.101tec:zkclient:0.8'){ exclude group: "org.slf4j", module: "slf4j-log4j12" } compile 'commons-beanutils:commons-beanutils-core:1.8.3' compile fileTree(dir: '../lib', include: '*.jar') compile ( project(':model'), project(':common'), project(':interface') ) testCompile('org.springframework.boot:spring-boot-starter-test') } configurations.compile.resolutionStrategy { failOnVersionConflict() force 'org.mybatis:mybatis-spring:1.3.1' force 'org.mybatis:mybatis:3.4.5' force 'commons-lang:commons-lang:2.5' force 'commons-logging:commons-logging:1.1.3' force 'com.google.guava:guava:18.0' force 'org.slf4j:slf4j-api:1.7.21' force 'log4j:log4j:1.2.17' }