build.gradle 5.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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){exclude group: 'org.apache.logging.log4j',module:'log4j-api'}
  29. compile group: "org.apache.logging.log4j", name: "log4j-api", version: LOG4J_VERSION
  30. compile group: "org.springframework.boot", name: "spring-boot-configuration-processor", version: SPRING_BOOT_VERSION
  31. compile group: "org.springframework.boot", name: "spring-boot-starter-actuator", version: SPRING_BOOT_VERSION
  32. compile group: "org.springframework.boot", name: "spring-boot-starter-logging", version: SPRING_BOOT_VERSION
  33. //消息
  34. // compile group: "org.springframework.boot", name: "spring-boot-starter-activemq", version: SPRING_BOOT_VERSION
  35. compile group: "org.springframework.boot", name:"spring-boot-starter-tomcat", version: SPRING_BOOT_VERSION
  36. // spring boot 缓存
  37. compile group:"org.springframework.boot", name:"spring-boot-starter-cache", version: SPRING_BOOT_VERSION
  38. // 单元测试
  39. compile group:"org.springframework.boot", name:"spring-boot-starter-test", version: SPRING_BOOT_VERSION
  40. //compile group: "org.springframework.cloud", name: "spring-cloud-starter-netflix-ribbon", version: SPRING_CLOUD_CONFIG_VERSION
  41. //compile group: "com.alibaba.cloud", name: "spring-cloud-starter-alibaba-nacos-discovery", version: SPRING_CLOUD_CONFIG_VERSION
  42. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  43. // spring cloud 依赖
  44. compile(group: 'org.springframework.cloud', name: 'spring-cloud-starter-netflix-eureka-client', version: SPRING_CLOUD_CONFIG_VERSION){exclude group: 'com.thoughtworks.xstream',module:'xstream'}
  45. compile(group: 'com.thoughtworks.xstream', name: 'xstream', version: XSTREAM_VERSION)
  46. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  47. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  48. // RESTful API 文档生成工具
  49. // https://mvnrepository.com/artifact/org.springdoc/springdoc-openapi-ui
  50. compile group: 'org.springdoc', name: 'springdoc-openapi-ui', version: SPRING_DOC_VERSION
  51. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  52. // Sybotan依赖
  53. compile group: "com.alibaba", name: "fastjson", version: FAST_JSON_VERSION
  54. compile(group: "com.persagy", name: "persagy-kotlin-base", version: PERSAGY_KOTLIN_VERSION){exclude group: 'com.alibaba',module:'fastjson'}
  55. compile group: "com.persagy", name: "persagy-kotlin-database", version: PERSAGY_KOTLIN_VERSION
  56. compile(group: "com.persagy", name: "persagy-kotlin-mybatis", version: PERSAGY_KOTLIN_VERSION) {exclude group: 'org.mybatis',module:'mybatis'}
  57. compile group: "org.mybatis", name: "mybatis", version: MYBATIS_CORE_VERSION
  58. compile group: "com.persagy", name: "persagy-kotlin-mysql", version: PERSAGY_KOTLIN_VERSION
  59. compile group: "com.persagy", name: "persagy-service-base", version: PERSAGY_SERVICE_VERSION
  60. compile group: "com.persagy", name: "persagy-service-mybatis", version: PERSAGY_SERVICE_VERSION
  61. compile group: "com.persagy", name: "persagy-service-mysql", version: PERSAGY_SERVICE_VERSION
  62. compile group: "com.persagy", name: "dmp-digital-starter", version: DIGITAL_START_VERSION
  63. //compile group: "com.persagy", name: "integrated-config-client", version: PERSAGY_INTERGERT_VERSION
  64. // compile group: "com.persagy", name: "integrated-eureka", version: PERSAGY_INTERGERT_VERSION
  65. // TestNG 测试框架
  66. compile group: "org.testng", name: "testng", version: TESTNG_VERSION
  67. // Log 工具
  68. compile group: "org.projectlombok", name: "lombok", version: LOMBOK_VERSION
  69. compile group: 'org.apache.skywalking', name: 'apm-toolkit-logback-1.x', version: APM_SKYWALKING_VERSION
  70. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  71. //Gson
  72. compile 'com.google.code.gson:gson:2.8.0'
  73. // ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  74. // // 二维码与条形码
  75. // // https://mvnrepository.com/artifact/com.google.zxing/core
  76. // compile group: "com.google.zxing", name: "core", version: ZXING_VERSION
  77. }