build.gradle 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. /*
  2. * ********************************************************************************************************************
  3. *
  4. * :*$@@%$*: ;: ;; ;;
  5. * :@@%! :!@@%: %! ;%%@@%$ =@@@@@@@%; @%@@@%%%%@@@@@
  6. * :@%; :$= %%$$$%$$ ;$$ ;$@= !@$
  7. * =@! %! @ $=;% !@@@%: !$$$$$$$$$$$$$$=
  8. * =@* %! @ $= % %@= =%@! %=
  9. * *$%%! @@= ;=$%%%$*: %! @ $= % =%%%%%%@$ *%: =%
  10. * %@@!: !@@@%=$@@@@%! :*@@$: %! @ $= % $* ;@ @* :%*
  11. * ;@@! ;!!!;: ;@%: =======@%========* @ $$ % $%*****$@ :@$=*********=@$
  12. * $@* ;@@@%=!: *@*
  13. * =@$ ;;;!=%@@@@=! =@!
  14. * %@$: =@%: :*@@@* %@= Copyright (c) 2016-2019. 北京上格云技术有限公司
  15. * ;%@@$=$@@%* *@@@$=%@@%;
  16. * ::;:: ::;:: All rights reserved.
  17. *
  18. * ********************************************************************************************************************
  19. */
  20. group rootProject.group
  21. version rootProject.version
  22. apply plugin: "kotlin"
  23. apply plugin: "org.jetbrains.dokka"
  24. apply plugin: "war"
  25. apply plugin: 'org.springframework.boot'
  26. apply plugin: 'io.spring.dependency-management'
  27. sourceCompatibility = JVM_TARGET
  28. compileKotlin {
  29. kotlinOptions.jvmTarget = JVM_TARGET
  30. }
  31. compileTestKotlin {
  32. kotlinOptions.jvmTarget = JVM_TARGET
  33. }
  34. dependencies {
  35. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  36. // kotlin 依赖
  37. compile group: "org.jetbrains.kotlin", name: "kotlin-stdlib-jdk8", version: KOTLIN_VERSION
  38. compile group: "org.jetbrains.kotlin", name: "kotlin-reflect", version: KOTLIN_VERSION
  39. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  40. // spring boot 依赖
  41. compile(group: "org.springframework.boot", name: "spring-boot-starter-web", version: SPRING_BOOT_VERSION){exclude group: 'org.apache.logging.log4j',module:'log4j-api'}
  42. compile group: "org.apache.logging.log4j", name: "log4j-api", version: LOG4J_VERSION
  43. compile group: "org.springframework.boot", name: "spring-boot-configuration-processor", version: SPRING_BOOT_VERSION
  44. compile group: "org.springframework.boot", name: "spring-boot-starter-actuator", version: SPRING_BOOT_VERSION
  45. compile group: "org.springframework.boot", name: "spring-boot-starter-logging", version: SPRING_BOOT_VERSION
  46. //消息
  47. // compile group: "org.springframework.boot", name: "spring-boot-starter-activemq", version: SPRING_BOOT_VERSION
  48. providedCompile group: "org.springframework.boot", name:"spring-boot-starter-tomcat", version: SPRING_BOOT_VERSION
  49. // spring boot 缓存
  50. compile group:"org.springframework.boot", name:"spring-boot-starter-cache", version: SPRING_BOOT_VERSION
  51. // 单元测试
  52. compile group:"org.springframework.boot", name:"spring-boot-starter-test", version: SPRING_BOOT_VERSION
  53. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  54. // spring cloud 依赖
  55. // compile group: 'org.springframework.cloud', name: 'spring-cloud-starter-eureka', version: SPRING_CLOUD_VERSION
  56. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  57. // MySQL
  58. // https://mvnrepository.com/artifact/mysql/mysql-connector-java
  59. // compile group: 'mysql', name: 'mysql-connector-java', version: MYSQL_VERSION
  60. // // PostgreSQL
  61. // //https://mvnrepository.com/artifact/org.postgresql/postgresql
  62. // compile group: 'org.postgresql', name: 'postgresql', version: POSTGRESQL_VERSION
  63. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  64. // RESTful API 文档生成工具
  65. // https://mvnrepository.com/artifact/org.springdoc/springdoc-openapi-ui
  66. compile group: 'org.springdoc', name: 'springdoc-openapi-ui', version: SPRING_DOC_VERSION
  67. // https://mvnrepository.com/artifact/org.springdoc/springdoc-openapi-common
  68. compile group: "org.springdoc", name: "springdoc-openapi-common", version: SPRING_DOC_VERSION
  69. // PlantUML
  70. // https://mvnrepository.com/artifact/com.credibledoc/plantuml-core
  71. compile group: "com.credibledoc", name: "plantuml-core", version: PLANTUML_VERSION
  72. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  73. // persagy依赖
  74. compile group: "com.alibaba", name: "fastjson", version: FAST_JSON_VERSION
  75. compile(group: "cn.sagacloud", name: "saga-kotlin-base", version: SYBOTAN_KOTLIN_VERSION) {exclude group: 'com.alibaba',module:'fastjson'}
  76. compile group: "cn.sagacloud", name: "saga-kotlin-database", version: SYBOTAN_KOTLIN_VERSION
  77. compile(group: "cn.sagacloud", name: "saga-kotlin-mybatis", version: SYBOTAN_KOTLIN_VERSION) {exclude group: 'org.mybatis',module:'mybatis'}
  78. compile group: "org.mybatis", name: "mybatis", version: MYBATIS_CORE_VERSION
  79. compile group: "cn.sagacloud", name: "saga-kotlin-mysql", version: SYBOTAN_KOTLIN_VERSION
  80. compile group: "cn.sagacloud", name: "saga-service-base", version: SYBOTAN_SERVICE_VERSION
  81. compile group: "cn.sagacloud", name: "saga-service-mybatis", version: SYBOTAN_SERVICE_VERSION
  82. compile group: "cn.sagacloud", name: "saga-service-mysql", version: SYBOTAN_SERVICE_VERSION
  83. compile group: "com.persagy", name: "dmp-digital-starter", version: DIGITAL_START_VERSION
  84. // compile project(":data-core")
  85. // TestNG 测试框架
  86. compile group: "org.testng", name: "testng", version: TESTNG_VERSION
  87. // Log 工具
  88. compile group: "org.projectlombok", name: "lombok", version: LOMBOK_VERSION
  89. compile group: 'org.apache.skywalking', name: 'apm-toolkit-logback-1.x', version: APM_SKYWALKING_VERSION
  90. // spring cloud 依赖
  91. compile(group: 'org.springframework.cloud', name: 'spring-cloud-starter-netflix-eureka-client', version: SPRING_CLOUD_CONFIG_VERSION){exclude group: 'com.thoughtworks.xstream',module:'xstream'}
  92. compile(group: 'com.thoughtworks.xstream', name: 'xstream', version: XSTREAM_VERSION)
  93. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  94. // ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  95. // // 二维码与条形码
  96. // // https://mvnrepository.com/artifact/com.google.zxing/core
  97. // compile group: "com.google.zxing", name: "core", version: ZXING_VERSION
  98. }