buildscript { repositories { mavenLocal() maven { url "http://maven.aliyun.com/nexus/content/groups/public" } mavenCentral() } dependencies { classpath("$bootGroup:spring-boot-gradle-plugin:$springBootVersion") } } apply plugin: "$bootGroup" apply plugin: 'io.spring.dependency-management' dependencies { compile group: 'org.apache.httpcomponents', name: 'httpclient', version:'4.3.3' compile group: 'com.alibaba', name: 'fastjson', version:'1.2.10' compile group: 'com.google.guava', name: 'guava', version:'14.0' compile group: 'commons-lang', name: 'commons-lang', version:'2.6' compile group: 'commons-io', name: 'commons-io', version:'2.2' compile group: 'com.google.code.findbugs', name: 'jsr305', version:'2.0.0' compile group: 'com.google.code.gson', name: 'gson', version:'2.2.4' compile("$bootGroup:spring-boot-starter-log4j2") }