build.gradle 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. ext {
  2. springBootVersion = '1.5.3.RELEASE'
  3. }
  4. buildscript {
  5. ext {
  6. springBootVersion = '1.5.3.RELEASE'
  7. }
  8. repositories {
  9. mavenLocal()
  10. maven {url "http://maven.aliyun.com/nexus/content/groups/public/"}
  11. maven { url 'http://repo.spring.io/snapshot' }
  12. maven { url 'http://repo.spring.io/milestone' }
  13. }
  14. dependencies {
  15. classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
  16. }
  17. }
  18. apply plugin: 'org.springframework.boot'
  19. version = '1.0'
  20. sourceCompatibility = 1.8
  21. repositories {
  22. mavenCentral()
  23. maven {url "http://maven.aliyun.com/nexus/content/groups/public/"}
  24. maven { url 'http://repo.spring.io/snapshot' }
  25. maven { url 'http://repo.spring.io/milestone' }
  26. }
  27. dependencies {
  28. compile 'org.mybatis:mybatis:3.4.1'
  29. compile 'org.mybatis:mybatis-spring:1.3.0'
  30. compile 'com.github.pagehelper:pagehelper:4.1.1'
  31. compile 'tk.mybatis:mapper:3.3.8'
  32. // compile 'org.jboss.spec.javax.el:jboss-el-api_3.0_spec:1.0.0.Final'
  33. compile 'mysql:mysql-connector-java:5.1.30'
  34. compile('org.apache.zookeeper:zookeeper:3.4.6'){
  35. transitive = false
  36. }
  37. compile("jline:jline:0.9.94")
  38. compile("com.google.code.gson:gson:2.8.0")
  39. compile("org.javassist:javassist")
  40. // compile("org.jboss.netty:netty:3.2.10.Final")
  41. compile 'org.elasticsearch.client:transport:5.5.0'
  42. compile 'org.elasticsearch:elasticsearch:5.5.0'
  43. // compile("org.springframework.boot:spring-boot-starter-data-elasticsearch:${springBootVersion}")
  44. compile("org.springframework.boot:spring-boot-starter-web:${springBootVersion}")
  45. compile("org.springframework.boot:spring-boot-starter-jdbc:${springBootVersion}")
  46. compile("org.springframework.boot:spring-boot-starter-aop:${springBootVersion}")
  47. compile 'com.alibaba:fastjson:1.2.23'
  48. compile ('com.alibaba:dubbo:2.5.3'){
  49. transitive = false
  50. }
  51. compile 'com.dangdang:elastic-job-lite-core:2.1.1'
  52. compile ('com.dangdang:elastic-job-lite-spring:2.1.1'){
  53. transitive = false
  54. }
  55. compile fileTree(dir: '../lib', include: '*.jar')
  56. compile 'org.drools:drools-core:6.5.0.Final'
  57. compile 'org.drools:drools-compiler:6.5.0.Final'
  58. compile 'commons-beanutils:commons-beanutils-core:1.8.3'
  59. compile group: 'com.alibaba', name: 'druid', version: '1.0.29'
  60. compile ('com.101tec:zkclient:0.8'){
  61. exclude group: "org.slf4j", module: "slf4j-log4j12"
  62. }
  63. compile("org.springframework.boot:spring-boot-starter-amqp:${springBootVersion}")
  64. testCompile ("org.springframework.boot:spring-boot-starter-test:${springBootVersion}")
  65. testCompile 'org.mybatis.generator:mybatis-generator-core:1.3.2'
  66. compile (
  67. project(':model'),
  68. project(':common'),
  69. project(':interface')
  70. )
  71. }
  72. configurations.compile.resolutionStrategy {
  73. failOnVersionConflict()
  74. force 'commons-logging:commons-logging:1.1.3'
  75. force 'com.google.guava:guava:18.0'
  76. force 'org.slf4j:slf4j-api:1.7.21'
  77. force 'log4j:log4j:1.2.17'
  78. force 'io.netty:netty:3.10.6.Final'
  79. force 'commons-lang:commons-lang:2.5'
  80. }