build.gradle 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. plugins {
  2. id 'org.springframework.boot' version '1.5.9.RELEASE'
  3. }
  4. group = 'com.emato'
  5. version = '2.0.0'
  6. apply plugin: 'java'
  7. apply plugin: 'idea'
  8. apply plugin: 'eclipse'
  9. apply plugin: 'org.springframework.boot'
  10. // 部署为外部服务器时, 配置为war包
  11. apply plugin: 'war'
  12. // 此配置在外部部署时, 为请求url的上下文路径
  13. archivesBaseName='ccnet2.0'
  14. sourceCompatibility = 1.8
  15. repositories {
  16. /*本地仓库*/
  17. mavenLocal()
  18. jcenter()
  19. mavenCentral()
  20. maven {
  21. url('http://central.maven.org/maven2')
  22. }
  23. }
  24. ext {
  25. mybatis_spring_boot = '1.3.1'
  26. mybatis_typehandlers_jsr310 = '1.0.2'
  27. logback_ext_spring = '0.1.4'
  28. jackson = '2.8.4'
  29. google_guava = '23.3-jre'
  30. okhttp = '3.4.1'
  31. apache_commons_beanutils = '1.9.3'
  32. apache_commons_lang3 = '3.6'
  33. apache_commons_io = '2.6'
  34. jxls = '2.4.2'
  35. jxls_poi = '1.0.13'
  36. jxls_jexcel = '1.0.6'
  37. jxls_reader = '2.0.3'
  38. dom4j = '1.6.1'
  39. jsonLib = '2.4'
  40. xom = '1.2.5'
  41. jedis = '2.9.0'
  42. fastjson = '1.2.15'
  43. gson = '2.6.2'
  44. spring_boot_starter_amqp = '1.5.2.RELEASE'
  45. }
  46. dependencies {
  47. // Spring Boot
  48. testCompile('org.springframework.boot:spring-boot-starter-test')
  49. compile('org.springframework.boot:spring-boot-starter-web')
  50. compile('org.springframework.boot:spring-boot-starter-aop')
  51. compile('org.springframework.boot:spring-boot-configuration-processor')
  52. compile('org.springframework.boot:spring-boot-starter-jdbc')
  53. // Mybatis Spring Boot
  54. compile("org.mybatis.spring.boot:mybatis-spring-boot-starter:${mybatis_spring_boot}")
  55. // Mybatis支持使用LocalDateTime
  56. compile("org.mybatis:mybatis-typehandlers-jsr310:${mybatis_typehandlers_jsr310}")
  57. /*runtime('mysql:mysql-connector-java')*/
  58. runtime('com.microsoft.sqlserver:mssql-jdbc')
  59. // Mariadb jdbc
  60. compile('org.mariadb.jdbc:mariadb-java-client')
  61. // HikariCP
  62. compile('com.zaxxer:HikariCP')
  63. // logback对spring的支持
  64. compile("org.logback-extensions:logback-ext-spring:${logback_ext_spring}")
  65. // 数据序列化
  66. compile("com.fasterxml.jackson.core:jackson-databind:${jackson}")
  67. compile("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:${jackson}")
  68. compile("com.fasterxml.jackson.module:jackson-module-afterburner:${jackson}")
  69. // 工具类
  70. compile("com.google.guava:guava:${google_guava}")
  71. // HTTP工具
  72. compile("com.squareup.okhttp3:okhttp:${okhttp}")
  73. /* apache commons */
  74. compile("commons-beanutils:commons-beanutils:${apache_commons_beanutils}")
  75. compile("org.apache.commons:commons-lang3:${apache_commons_lang3}")
  76. compile("commons-io:commons-io:${apache_commons_io}")
  77. // excel工具类
  78. compile("org.jxls:jxls:${jxls}")
  79. compile("org.jxls:jxls-poi:${jxls_poi}")
  80. compile("org.jxls:jxls-jexcel:${jxls_jexcel}")
  81. compile("org.jxls:jxls-reader:${jxls_reader}")
  82. //xml转map
  83. compile("dom4j:dom4j:${dom4j}")
  84. compile("net.sf.json-lib:json-lib:${jsonLib}:jdk15")
  85. compile("xom:xom:${xom}")
  86. //redis缓存
  87. compile("redis.clients:jedis:${jedis}")
  88. compile("com.alibaba:fastjson:${fastjson}")
  89. compile("com.google.code.gson:gson:${gson}")
  90. compile("org.springframework.boot:spring-boot-starter-amqp:${spring_boot_starter_amqp}")
  91. }