build.gradle 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. plugins {
  2. id 'org.springframework.boot' version '2.2.2.RELEASE'
  3. id 'io.spring.dependency-management' version '1.0.8.RELEASE'
  4. id 'java'
  5. }
  6. group = 'com.zcxk'
  7. //version = '0.0.1-SNAPSHOT'
  8. archivesBaseName = "meter-reading-system-v2-${releaseTime()}"
  9. sourceCompatibility = '1.8'
  10. tasks.withType(JavaCompile) {
  11. options.encoding = 'UTF-8'
  12. }
  13. def releaseTime() {
  14. return new Date().format("yyyyMMdd", TimeZone.getTimeZone("GMT+08:00"))
  15. }
  16. configurations {
  17. compileOnly {
  18. extendsFrom annotationProcessor
  19. }
  20. }
  21. repositories {
  22. mavenLocal()
  23. maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
  24. mavenCentral()
  25. }
  26. dependencies {
  27. compile fileTree(dir:'libs',include:['*.jar'])
  28. compile 'com.zcxk.zoniot:smart-city-common:0.0.1'
  29. implementation 'org.springframework.boot:spring-boot-starter-web'
  30. implementation 'org.springframework.boot:spring-boot-starter-aop'
  31. implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.1.1'
  32. compile('com.alibaba:druid-spring-boot-starter:1.1.9')
  33. //swagger在线接口文档生成工具
  34. compile('io.springfox:springfox-swagger2:2.7.0')
  35. compile('io.springfox:springfox-swagger-ui:2.7.0')
  36. compile('mysql:mysql-connector-java')
  37. compile('com.microsoft.sqlserver:sqljdbc4:4.0')
  38. //kafka
  39. implementation('org.springframework.kafka:spring-kafka')
  40. //json工具
  41. compile('com.alibaba:fastjson:1.2.41')
  42. implementation 'org.springframework.boot:spring-boot-starter-data-mongodb'
  43. implementation 'com.xuxueli:xxl-job-core:2.2.0'
  44. compileOnly 'org.projectlombok:lombok'
  45. annotationProcessor 'org.projectlombok:lombok'
  46. testImplementation('org.springframework.boot:spring-boot-starter-test') {
  47. exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
  48. }
  49. }
  50. test {
  51. useJUnitPlatform()
  52. }