build.gradle 4.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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
  45. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  46. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  47. // RESTful API 文档生成工具
  48. // https://mvnrepository.com/artifact/org.springdoc/springdoc-openapi-ui
  49. compile group: 'org.springdoc', name: 'springdoc-openapi-ui', version: SPRING_DOC_VERSION
  50. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  51. // Sybotan依赖
  52. compile group: "com.persagy", name: "persagy-kotlin-base", version: PERSAGY_KOTLIN_VERSION
  53. compile group: "com.persagy", name: "persagy-kotlin-database", version: PERSAGY_KOTLIN_VERSION
  54. compile group: "com.persagy", name: "persagy-kotlin-mybatis", version: PERSAGY_KOTLIN_VERSION
  55. compile group: "com.persagy", name: "persagy-kotlin-mysql", version: PERSAGY_KOTLIN_VERSION
  56. compile group: "com.persagy", name: "persagy-service-base", version: PERSAGY_SERVICE_VERSION
  57. compile group: "com.persagy", name: "persagy-service-mybatis", version: PERSAGY_SERVICE_VERSION
  58. compile group: "com.persagy", name: "persagy-service-mysql", version: PERSAGY_SERVICE_VERSION
  59. compile group: "com.persagy", name: "dmp-digital-starter", version: DIGITAL_START_VERSION
  60. //compile group: "com.persagy", name: "integrated-config-client", version: PERSAGY_INTERGERT_VERSION
  61. // compile group: "com.persagy", name: "integrated-eureka", version: PERSAGY_INTERGERT_VERSION
  62. // TestNG 测试框架
  63. compile group: "org.testng", name: "testng", version: TESTNG_VERSION
  64. // Log 工具
  65. compile group: "org.projectlombok", name: "lombok", version: LOMBOK_VERSION
  66. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  67. //Gson
  68. compile 'com.google.code.gson:gson:2.8.0'
  69. // ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  70. // // 二维码与条形码
  71. // // https://mvnrepository.com/artifact/com.google.zxing/core
  72. // compile group: "com.google.zxing", name: "core", version: ZXING_VERSION
  73. }