build.gradle 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. buildscript {
  2. repositories {
  3. mavenCentral()
  4. maven {url "http://maven.aliyun.com/nexus/content/groups/public/"}
  5. }
  6. dependencies {
  7. classpath("org.springframework.boot:spring-boot-gradle-plugin:1.5.3.RELEASE")
  8. }
  9. }
  10. apply plugin: 'org.springframework.boot'
  11. version = '1.0'
  12. sourceCompatibility = 1.8
  13. repositories {
  14. mavenCentral()
  15. maven {url "http://maven.aliyun.com/nexus/content/groups/public/"}
  16. }
  17. dependencies {
  18. compile('org.springframework.boot:spring-boot-starter')
  19. compile("org.springframework.boot:spring-boot-starter-jdbc")
  20. compile("org.springframework.boot:spring-boot-starter-web")
  21. compile("org.springframework.boot:spring-boot-starter-aop")
  22. compile 'org.jboss.spec.javax.el:jboss-el-api_3.0_spec:1.0.0.Final'
  23. compile 'commons-codec:commons-codec:1.6'
  24. compile 'org.mybatis.spring.boot:mybatis-spring-boot-starter:1.3.1'
  25. compile("org.javassist:javassist")
  26. compile("org.jboss.netty:netty:3.2.10.Final")
  27. compile 'com.github.pagehelper:pagehelper:4.1.1'
  28. compile 'com.alibaba:fastjson:1.2.23'
  29. compile 'com.alibaba:druid:1.0.29'
  30. compile ('com.101tec:zkclient:0.8'){
  31. exclude group: "org.slf4j", module: "slf4j-log4j12"
  32. }
  33. compile 'commons-beanutils:commons-beanutils-core:1.8.3'
  34. compile fileTree(dir: '../lib', include: '*.jar')
  35. compile (
  36. project(':model'),
  37. project(':common'),
  38. project(':interface')
  39. )
  40. testCompile('org.springframework.boot:spring-boot-starter-test')
  41. }
  42. configurations.compile.resolutionStrategy {
  43. failOnVersionConflict()
  44. force 'org.mybatis:mybatis-spring:1.3.1'
  45. force 'org.mybatis:mybatis:3.4.5'
  46. force 'commons-lang:commons-lang:2.5'
  47. force 'commons-logging:commons-logging:1.1.3'
  48. force 'com.google.guava:guava:18.0'
  49. force 'org.slf4j:slf4j-api:1.7.21'
  50. force 'log4j:log4j:1.2.17'
  51. }