build.gradle 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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_RELEASE_URL}
  17. mavenCentral()
  18. jcenter()
  19. }
  20. dependencies {
  21. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  22. // kotlin 依赖
  23. compile group: "org.jetbrains.kotlin", name: "kotlin-stdlib-jdk8", version: KOTLIN_VERSION
  24. compile group: "org.jetbrains.kotlin", name: "kotlin-reflect", version: KOTLIN_VERSION
  25. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  26. // spring boot 依赖
  27. compile group: "org.springframework.boot", name: "spring-boot-starter-web", version: SPRING_BOOT_VERSION
  28. compile group: "org.springframework.boot", name: "spring-boot-configuration-processor", version: SPRING_BOOT_VERSION
  29. compile group: "org.springframework.boot", name: "spring-boot-starter-actuator", version: SPRING_BOOT_VERSION
  30. compile group: "org.springframework.boot", name: "spring-boot-starter-logging", version: SPRING_BOOT_VERSION
  31. //消息
  32. // compile group: "org.springframework.boot", name: "spring-boot-starter-activemq", version: SPRING_BOOT_VERSION
  33. compile group: "org.springframework.boot", name:"spring-boot-starter-tomcat", version: SPRING_BOOT_VERSION
  34. // spring boot 缓存
  35. compile group:"org.springframework.boot", name:"spring-boot-starter-cache", version: SPRING_BOOT_VERSION
  36. // 单元测试
  37. compile group:"org.springframework.boot", name:"spring-boot-starter-test", version: SPRING_BOOT_VERSION
  38. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  39. // spring cloud 依赖
  40. // compile group: 'org.springframework.cloud', name: 'spring-cloud-starter-eureka', version: SPRING_CLOUD_VERSION
  41. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  42. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  43. // RESTful API 文档生成工具
  44. // https://mvnrepository.com/artifact/org.springdoc/springdoc-openapi-ui
  45. compile group: 'org.springdoc', name: 'springdoc-openapi-ui', version: SPRING_DOC_VERSION
  46. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  47. // Sybotan依赖
  48. compile group: "com.persagy", name: "persagy-kotlin-base", version: PERSAGY_KOTLIN_VERSION
  49. compile group: "com.persagy", name: "persagy-kotlin-database", version: PERSAGY_KOTLIN_VERSION
  50. compile group: "com.persagy", name: "persagy-kotlin-mybatis", version: PERSAGY_KOTLIN_VERSION
  51. compile group: "com.persagy", name: "persagy-kotlin-mysql", version: PERSAGY_KOTLIN_VERSION
  52. compile group: "com.persagy", name: "persagy-service-base", version: PERSAGY_SERVICE_VERSION
  53. compile group: "com.persagy", name: "persagy-service-mybatis", version: PERSAGY_SERVICE_VERSION
  54. compile group: "com.persagy", name: "persagy-service-mysql", version: PERSAGY_SERVICE_VERSION
  55. compile group: "com.persagy", name: "dmp-digital-starter", version: DIGITAL_START_VERSION
  56. // TestNG 测试框架
  57. compile group: "org.testng", name: "testng", version: TESTNG_VERSION
  58. // Log 工具
  59. compile group: "org.projectlombok", name: "lombok", version: LOMBOK_VERSION
  60. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  61. //Gson
  62. compile 'com.google.code.gson:gson:2.8.0'
  63. // ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  64. // // 二维码与条形码
  65. // // https://mvnrepository.com/artifact/com.google.zxing/core
  66. // compile group: "com.google.zxing", name: "core", version: ZXING_VERSION
  67. }