build.gradle 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. buildscript {
  2. ext {
  3. springBootVersion = '2.0.6.RELEASE'
  4. }
  5. repositories {
  6. mavenLocal()
  7. maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
  8. }
  9. dependencies {
  10. classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
  11. }
  12. }
  13. //apply plugin: 'war'
  14. apply plugin: 'java'
  15. apply plugin: 'org.springframework.boot'
  16. apply plugin: 'io.spring.dependency-management'
  17. archivesBaseName = "water-api-${releaseTime()}"
  18. group = 'com.bz'
  19. //version = '0.0.1-SNAPSHOT'
  20. sourceCompatibility = 1.8
  21. targetCompatibility = 1.8
  22. jar {
  23. version = '0.0.1'
  24. manifest {
  25. attributes "Manifest-Version": 1.0,
  26. 'Main-Class': 'com.bz.smart_city.SmartCityApplication'
  27. }
  28. }
  29. repositories {
  30. mavenLocal()
  31. maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
  32. }
  33. configurations {
  34. compileOnly {
  35. extendsFrom annotationProcessor
  36. }
  37. }
  38. dependencies {
  39. compile 'com.zcxk.zoniot:smart-city-common:0.0.1'
  40. compileOnly 'org.projectlombok:lombok:1.18.10'
  41. annotationProcessor 'org.projectlombok:lombok:1.18.10'
  42. testCompileOnly 'org.projectlombok:lombok:1.18.10'
  43. testAnnotationProcessor 'org.projectlombok:lombok:1.18.10'
  44. implementation('org.springframework.boot:spring-boot-starter-security')
  45. implementation('org.springframework.boot:spring-boot-starter-web')
  46. implementation('org.springframework.boot:spring-boot-starter-thymeleaf')
  47. implementation('org.springframework.boot:spring-boot-starter-aop')
  48. implementation('org.springframework.boot:spring-boot-starter-validation')
  49. implementation('org.springframework.boot:spring-boot-starter-amqp')
  50. implementation('org.springframework.kafka:spring-kafka')
  51. implementation 'org.springframework.boot:spring-boot-starter-data-mongodb'
  52. compile('mysql:mysql-connector-java')
  53. //数据源连接池
  54. //compile('com.alibaba:druid:1.1.6')
  55. compile('com.alibaba:druid-spring-boot-starter:1.1.9')
  56. //swagger在线接口文档生成工具
  57. compile('io.springfox:springfox-swagger2:2.7.0')
  58. compile('io.springfox:springfox-swagger-ui:2.7.0')
  59. //分页插件
  60. //compile('com.github.pagehelper:pagehelper:4.1.0')
  61. compile('com.github.pagehelper:pagehelper-spring-boot-starter:1.2.10')
  62. compile ('org.apache.httpcomponents:httpclient:4.5.6')
  63. //json工具
  64. compile('com.alibaba:fastjson:1.2.41')
  65. compile('io.jsonwebtoken:jjwt:0.9.0')
  66. //redis
  67. compile('org.springframework.boot:spring-boot-starter-data-redis')
  68. {
  69. exclude group: 'io.lettuce'
  70. }
  71. compile('redis.clients:jedis')
  72. compile('org.apache.commons:commons-pool2')
  73. compileOnly('org.projectlombok:lombok')
  74. testImplementation('org.springframework.boot:spring-boot-starter-test')
  75. compile('org.apache.commons:commons-lang3:3.4')
  76. //poi
  77. compile 'org.apache.poi:poi:3.17'
  78. compile 'org.apache.poi:poi-ooxml:3.17'
  79. compile 'org.apache.poi:poi-ooxml-schemas:3.17'
  80. //jxls
  81. //compile 'org.jxls.jxls:2.4.6'
  82. compile 'org.jxls:jxls-poi:1.0.16'
  83. //activiti
  84. compile('org.activiti:activiti-spring-boot-starter-basic:5.22.0')
  85. compile('dom4j:dom4j:1.6.1')
  86. // quartz
  87. compile('org.springframework.boot:spring-boot-starter-quartz')
  88. //腾讯云
  89. compile('com.github.qcloudsms:qcloudsms:1.0.6')
  90. //netty
  91. compile ('io.netty:netty-all:4.1.30.Final')
  92. compile('org.bouncycastle:bcprov-jdk16:1.46')
  93. //阿里云
  94. compile('com.aliyun:aliyun-java-sdk-core:4.1.0')
  95. //jdom
  96. compile('org.jdom:jdom:1.1')
  97. }
  98. tasks.withType(JavaCompile) {
  99. options.encoding = 'UTF-8'
  100. }
  101. def releaseTime() {
  102. return new Date().format("yyyyMMdd", TimeZone.getTimeZone("GMT+08:00"))
  103. }
  104. allprojects {
  105. gradle.projectsEvaluated {
  106. tasks.withType(JavaCompile) {
  107. options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation" }
  108. }
  109. }