build.gradle 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. group rootProject.group
  2. version rootProject.version
  3. apply plugin: "kotlin"
  4. apply plugin: "org.jetbrains.dokka"
  5. apply plugin: "war"
  6. apply plugin: 'org.springframework.boot'
  7. apply plugin: 'io.spring.dependency-management'
  8. sourceCompatibility = JVM_TARGET
  9. compileKotlin {
  10. kotlinOptions.jvmTarget = JVM_TARGET
  11. }
  12. compileTestKotlin {
  13. kotlinOptions.jvmTarget = JVM_TARGET
  14. }
  15. repositories {
  16. maven{url MAVEN_REPO_NEXUS_PUBLIC_URL}
  17. maven{url MAVEN_REPO_NEXUS_RELEASE_URL}
  18. mavenCentral()
  19. jcenter()
  20. }
  21. dependencies {
  22. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  23. // kotlin 依赖
  24. compile group: "org.jetbrains.kotlin", name: "kotlin-stdlib-jdk8", version: KOTLIN_VERSION
  25. compile group: "org.jetbrains.kotlin", name: "kotlin-reflect", version: KOTLIN_VERSION
  26. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  27. // spring boot 依赖
  28. compile(group: "org.springframework.boot", name: "spring-boot-starter-web", version: SPRING_BOOT_VERSION){
  29. exclude group: 'org.apache.logging.log4j',module:'log4j-api'
  30. exclude group: 'org.springframework.boot',module:'spring-boot-starter-tomcat'
  31. exclude group: 'org.apache.tomcat.embed',module:'tomcat-embed-core'
  32. exclude group: 'org.apache.tomcat.embed',module:'tomcat-embed-el'
  33. exclude group: 'org.apache.tomcat.embed',module:'tomcat-embed-websocket'
  34. }
  35. compile group: "org.springframework.boot", name: "spring-boot-starter-tomcat", version: '2.6.10'
  36. compile(group: "org.apache.tomcat.embed", name: "tomcat-embed-core", version: '9.0.65'){exclude group:'org.apache.tomcat',module:'tomcat-annotations-api'}
  37. compile group: "org.apache.tomcat.embed", name: "tomcat-embed-el", version: '9.0.65'
  38. compile(group: "org.apache.tomcat.embed", name: "tomcat-embed-websocket", version: '9.0.65'){exclude group:'org.apache.tomcat',module:'tomcat-annotations-api'}
  39. compile group: "org.apache.logging.log4j", name: "log4j-api", version: LOG4J_VERSION
  40. compile group: "org.springframework.boot", name: "spring-boot-configuration-processor", version: SPRING_BOOT_VERSION
  41. compile group: "org.springframework.boot", name: "spring-boot-starter-actuator", version: SPRING_BOOT_VERSION
  42. compile group: "org.springframework.boot", name: "spring-boot-starter-logging", version: SPRING_BOOT_VERSION
  43. //消息
  44. // compile group: "org.springframework.boot", name: "spring-boot-starter-activemq", version: SPRING_BOOT_VERSION
  45. //compile group: "org.springframework.boot", name:"spring-boot-starter-tomcat", version: SPRING_BOOT_VERSION
  46. // spring boot 缓存
  47. compile group:"org.springframework.boot", name:"spring-boot-starter-cache", version: SPRING_BOOT_VERSION
  48. // 单元测试
  49. compile group:"org.springframework.boot", name:"spring-boot-starter-test", version: SPRING_BOOT_VERSION
  50. //compile group: "org.springframework.cloud", name: "spring-cloud-starter-netflix-ribbon", version: SPRING_CLOUD_CONFIG_VERSION
  51. //compile group: "com.alibaba.cloud", name: "spring-cloud-starter-alibaba-nacos-discovery", version: SPRING_CLOUD_CONFIG_VERSION
  52. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  53. // spring cloud 依赖
  54. compile(group: 'org.springframework.cloud', name: 'spring-cloud-starter-openfeign', version: SPRING_CLOUD_CONFIG_VERSION){exclude group: 'com.thoughtworks.xstream',module:'xstream'}
  55. compile(group: 'com.thoughtworks.xstream', name: 'xstream', version: XSTREAM_VERSION)
  56. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  57. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  58. // RESTful API 文档生成工具
  59. // https://mvnrepository.com/artifact/org.springdoc/springdoc-openapi-ui
  60. compile group: 'org.springdoc', name: 'springdoc-openapi-ui', version: SPRING_DOC_VERSION
  61. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  62. // Sybotan依赖
  63. compile group: "com.alibaba", name: "fastjson", version: FAST_JSON_VERSION
  64. compile(group: "com.persagy", name: "persagy-kotlin-base", version: PERSAGY_KOTLIN_VERSION){exclude group: 'com.alibaba',module:'fastjson'}
  65. compile group: "com.persagy", name: "persagy-kotlin-database", version: PERSAGY_KOTLIN_VERSION
  66. compile(group: "com.persagy", name: "persagy-kotlin-mybatis", version: PERSAGY_KOTLIN_VERSION) {exclude group: 'org.mybatis',module:'mybatis'}
  67. compile group: "org.mybatis", name: "mybatis", version: MYBATIS_CORE_VERSION
  68. compile group: "com.persagy", name: "persagy-kotlin-mysql", version: PERSAGY_KOTLIN_VERSION
  69. compile group: "com.persagy", name: "persagy-service-base", version: PERSAGY_SERVICE_VERSION
  70. compile group: "com.persagy", name: "persagy-service-mybatis", version: PERSAGY_SERVICE_VERSION
  71. compile group: "com.persagy", name: "persagy-service-mysql", version: PERSAGY_SERVICE_VERSION
  72. compile group: "com.persagy", name: "dmp-digital-starter", version: DIGITAL_START_VERSION
  73. compile group: "com.baomidou", name: "mybatis-plus-boot-starter", version: MYBATIS_PLUS_VERSION
  74. compile group: "com.baomidou", name: "mybatis-plus-annotation", version: MYBATIS_PLUS_VERSION
  75. compile group: "com.baomidou", name: "mybatis-plus-extension", version: MYBATIS_PLUS_VERSION
  76. //compile group: "com.baomidou", name: "dynamic-datasource-spring-boot-starter", version: MYBATIS_PLUS_DYNAMIC_VERSION
  77. compile group: "com.github.jeffreyning", name:"mybatisplus-plus", version:"1.7.0-RELEASE"
  78. //compile group: "com.persagy", name: "integrated-config-client", version: PERSAGY_INTERGERT_VERSION
  79. // compile group: "com.persagy", name: "integrated-eureka", version: PERSAGY_INTERGERT_VERSION
  80. // TestNG 测试框架
  81. compile group: "org.testng", name: "testng", version: TESTNG_VERSION
  82. // Log 工具
  83. compile group: "org.projectlombok", name: "lombok", version: LOMBOK_VERSION
  84. compile group: 'org.apache.skywalking', name: 'apm-toolkit-logback-1.x', version: APM_SKYWALKING_VERSION
  85. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  86. //Gson
  87. compile 'com.google.code.gson:gson:2.8.0'
  88. // ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  89. // // 二维码与条形码
  90. // // https://mvnrepository.com/artifact/com.google.zxing/core
  91. // compile group: "com.google.zxing", name: "core", version: ZXING_VERSION
  92. }