ext { springBootVersion = '1.5.3.RELEASE' } buildscript { ext { springBootVersion = '1.5.3.RELEASE' } repositories { mavenLocal() maven {url "http://maven.aliyun.com/nexus/content/groups/public/"} maven { url 'http://repo.spring.io/snapshot' } maven { url 'http://repo.spring.io/milestone' } } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") } } apply plugin: 'org.springframework.boot' version = '1.0' sourceCompatibility = 1.8 repositories { mavenCentral() maven {url "http://maven.aliyun.com/nexus/content/groups/public/"} maven { url 'http://repo.spring.io/snapshot' } maven { url 'http://repo.spring.io/milestone' } } dependencies { compile 'org.mybatis:mybatis:3.4.1' compile 'org.mybatis:mybatis-spring:1.3.0' compile 'com.github.pagehelper:pagehelper:4.1.1' compile 'tk.mybatis:mapper:3.3.8' // compile 'org.jboss.spec.javax.el:jboss-el-api_3.0_spec:1.0.0.Final' compile 'mysql:mysql-connector-java:5.1.30' compile('org.apache.zookeeper:zookeeper:3.4.6'){ transitive = false } compile("jline:jline:0.9.94") compile("com.google.code.gson:gson:2.8.0") compile("org.javassist:javassist") // compile("org.jboss.netty:netty:3.2.10.Final") compile 'org.elasticsearch.client:transport:5.5.0' compile 'org.elasticsearch:elasticsearch:5.5.0' // compile("org.springframework.boot:spring-boot-starter-data-elasticsearch:${springBootVersion}") compile("org.springframework.boot:spring-boot-starter-web:${springBootVersion}") compile("org.springframework.boot:spring-boot-starter-jdbc:${springBootVersion}") compile("org.springframework.boot:spring-boot-starter-aop:${springBootVersion}") compile 'com.alibaba:fastjson:1.2.23' compile ('com.alibaba:dubbo:2.5.3'){ transitive = false } compile 'com.dangdang:elastic-job-lite-core:2.1.1' compile ('com.dangdang:elastic-job-lite-spring:2.1.1'){ transitive = false } compile fileTree(dir: '../lib', include: '*.jar') compile 'org.drools:drools-core:6.5.0.Final' compile 'org.drools:drools-compiler:6.5.0.Final' compile 'commons-beanutils:commons-beanutils-core:1.8.3' compile group: 'com.alibaba', name: 'druid', version: '1.0.29' compile ('com.101tec:zkclient:0.8'){ exclude group: "org.slf4j", module: "slf4j-log4j12" } compile("org.springframework.boot:spring-boot-starter-amqp:${springBootVersion}") testCompile ("org.springframework.boot:spring-boot-starter-test:${springBootVersion}") testCompile 'org.mybatis.generator:mybatis-generator-core:1.3.2' compile ( project(':model'), project(':common'), project(':interface') ) } configurations.compile.resolutionStrategy { failOnVersionConflict() 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' force 'io.netty:netty:3.10.6.Final' force 'commons-lang:commons-lang:2.5' }