build.gradle 4.0 KB

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