build.gradle 4.7 KB

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