build.gradle 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. plugins {
  2. id 'org.springframework.boot' version '2.1.0.RELEASE'
  3. id 'io.spring.dependency-management' version '1.0.8.RELEASE'
  4. id 'java'
  5. id "org.sonarqube" version "3.0"
  6. }
  7. group = 'com.zoniot'
  8. archivesBaseName = "ccrc-api-${releaseTime()}"
  9. configurations {
  10. compileOnly {
  11. extendsFrom annotationProcessor
  12. }
  13. }
  14. repositories {
  15. mavenLocal()
  16. maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
  17. }
  18. dependencies {
  19. implementation 'org.springframework.boot:spring-boot-starter'
  20. compileOnly 'org.projectlombok:lombok'
  21. annotationProcessor 'org.projectlombok:lombok'
  22. testImplementation('org.springframework.boot:spring-boot-starter-test') {
  23. exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
  24. }
  25. implementation('org.springframework.boot:spring-boot-starter-security')
  26. implementation('org.springframework.boot:spring-boot-starter-web')
  27. implementation('org.springframework.boot:spring-boot-starter-thymeleaf')
  28. implementation('org.springframework.boot:spring-boot-starter-aop')
  29. implementation('org.springframework.boot:spring-boot-starter-validation')
  30. implementation('cn.hutool:hutool-all:5.5.4')
  31. implementation 'org.springframework.boot:spring-boot-starter-data-mongodb'
  32. //implementation('org.springframework.boot:spring-boot-starter-amqp')
  33. //implementation('org.springframework.kafka:spring-kafka')
  34. compile('mysql:mysql-connector-java')
  35. //数据源连接池
  36. //compile('com.alibaba:druid:1.1.6')
  37. compile('com.alibaba:druid-spring-boot-starter:1.1.9')
  38. //swagger在线接口文档生成工具
  39. compile('io.springfox:springfox-swagger2:2.7.0')
  40. compile('io.springfox:springfox-swagger-ui:2.7.0')
  41. //分页插件
  42. //compile('com.github.pagehelper:pagehelper:4.1.0')
  43. compile('com.github.pagehelper:pagehelper-spring-boot-starter:1.2.10')
  44. compile ('org.apache.httpcomponents:httpclient:4.5.6')
  45. //json工具
  46. compile('com.alibaba:fastjson:1.2.41')
  47. compile('io.jsonwebtoken:jjwt:0.9.0')
  48. //redis
  49. compile('org.springframework.boot:spring-boot-starter-data-redis')
  50. {
  51. exclude group: 'io.lettuce'
  52. }
  53. compile('redis.clients:jedis')
  54. compile('org.apache.commons:commons-pool2')
  55. compileOnly('org.projectlombok:lombok')
  56. testImplementation('org.springframework.boot:spring-boot-starter-test')
  57. compile('org.apache.commons:commons-lang3:3.4')
  58. compile('commons-collections:commons-collections:3.2.2')
  59. //poi
  60. compile 'org.apache.poi:poi:3.17'
  61. compile 'org.apache.poi:poi-ooxml:3.17'
  62. compile 'org.apache.poi:poi-ooxml-schemas:3.17'
  63. //jxls
  64. //compile 'org.jxls.jxls:2.4.6'
  65. //compile 'org.jxls:jxls-poi:1.0.16'
  66. //compile('dom4j:dom4j:1.6.1')
  67. // quartz
  68. //compile('org.springframework.boot:spring-boot-starter-quartz')
  69. //腾讯云
  70. //compile('com.github.qcloudsms:qcloudsms:1.0.6')
  71. //netty
  72. //compile ('io.netty:netty-all:4.1.30.Final')
  73. compile('org.bouncycastle:bcprov-jdk16:1.46')
  74. //阿里云
  75. compile('com.aliyun:aliyun-java-sdk-core:4.1.0')
  76. //jdom
  77. compile('org.jdom:jdom:1.1')
  78. compile('org.springframework.boot:spring-boot-starter-amqp')
  79. }
  80. def releaseTime() {
  81. return new Date().format("yyyyMMdd", TimeZone.getTimeZone("GMT+08:00"))
  82. }
  83. test {
  84. useJUnitPlatform()
  85. }