build.gradle 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. /*
  2. * ********************************************************************************************************************
  3. *
  4. * :*$@@%$*: ;: ;; ;;
  5. * :@@%! :!@@%: %! ;%%@@%$ =@@@@@@@%; @%@@@%%%%@@@@@
  6. * :@%; :$= %%$$$%$$ ;$$ ;$@= !@$
  7. * =@! %! @ $=;% !@@@%: !$$$$$$$$$$$$$$=
  8. * =@* %! @ $= % %@= =%@! %=
  9. * *$%%! @@= ;=$%%%$*: %! @ $= % =%%%%%%@$ *%: =%
  10. * %@@!: !@@@%=$@@@@%! :*@@$: %! @ $= % $* ;@ @* :%*
  11. * ;@@! ;!!!;: ;@%: =======@%========* @ $$ % $%*****$@ :@$=*********=@$
  12. * $@* ;@@@%=!: *@*
  13. * =@$ ;;;!=%@@@@=! =@!
  14. * %@$: =@%: :*@@@* %@= Copyright (c) 2016-2019. 北京上格云技术有限公司
  15. * ;%@@$=$@@%* *@@@$=%@@%;
  16. * ::;:: ::;:: All rights reserved.
  17. *
  18. * ********************************************************************************************************************
  19. */
  20. group rootProject.group
  21. version rootProject.version
  22. apply plugin: "kotlin"
  23. apply plugin: "org.jetbrains.dokka"
  24. apply plugin: "war"
  25. apply plugin: 'org.springframework.boot'
  26. apply plugin: 'io.spring.dependency-management'
  27. sourceCompatibility = JVM_TARGET
  28. compileKotlin {
  29. kotlinOptions.jvmTarget = JVM_TARGET
  30. }
  31. compileTestKotlin {
  32. kotlinOptions.jvmTarget = JVM_TARGET
  33. }
  34. dependencies {
  35. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  36. // kotlin 依赖
  37. compile group: "org.jetbrains.kotlin", name: "kotlin-stdlib-jdk8", version: KOTLIN_VERSION
  38. compile group: "org.jetbrains.kotlin", name: "kotlin-reflect", version: KOTLIN_VERSION
  39. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  40. // spring boot 依赖
  41. compile group: "org.springframework.boot", name: "spring-boot-starter-web", version: SPRING_BOOT_VERSION
  42. compile group: "org.springframework.boot", name: "spring-boot-configuration-processor", version: SPRING_BOOT_VERSION
  43. compile group: "org.springframework.boot", name: "spring-boot-starter-actuator", version: SPRING_BOOT_VERSION
  44. compile group: "org.springframework.boot", name: "spring-boot-starter-logging", version: SPRING_BOOT_VERSION
  45. //消息
  46. // compile group: "org.springframework.boot", name: "spring-boot-starter-activemq", version: SPRING_BOOT_VERSION
  47. providedCompile group: "org.springframework.boot", name:"spring-boot-starter-tomcat", version: SPRING_BOOT_VERSION
  48. // spring boot 缓存
  49. compile group:"org.springframework.boot", name:"spring-boot-starter-cache", version: SPRING_BOOT_VERSION
  50. // 单元测试
  51. compile group:"org.springframework.boot", name:"spring-boot-starter-test", version: SPRING_BOOT_VERSION
  52. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  53. // spring cloud 依赖
  54. compile group: 'org.springframework.cloud', name: 'spring-cloud-starter-eureka', version: SPRING_CLOUD_VERSION
  55. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  56. // MySQL
  57. // https://mvnrepository.com/artifact/mysql/mysql-connector-java
  58. // compile group: 'mysql', name: 'mysql-connector-java', version: MYSQL_VERSION
  59. // // PostgreSQL
  60. // //https://mvnrepository.com/artifact/org.postgresql/postgresql
  61. // compile group: 'org.postgresql', name: 'postgresql', version: POSTGRESQL_VERSION
  62. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  63. // RESTful API 文档生成工具
  64. // https://mvnrepository.com/artifact/org.springdoc/springdoc-openapi-ui
  65. compile group: 'org.springdoc', name: 'springdoc-openapi-ui', version: SPRING_DOC_VERSION
  66. // https://mvnrepository.com/artifact/org.springdoc/springdoc-openapi-common
  67. compile group: "org.springdoc", name: "springdoc-openapi-common", version: SPRING_DOC_VERSION
  68. // PlantUML
  69. // https://mvnrepository.com/artifact/com.credibledoc/plantuml-core
  70. compile group: "com.credibledoc", name: "plantuml-core", version: PLANTUML_VERSION
  71. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  72. // persagy依赖
  73. compile group: "com.persagy", name: "persagy-kotlin-base", version: PERSAGY_KOTLIN_VERSION
  74. compile group: "com.persagy", name: "persagy-kotlin-database", version: PERSAGY_KOTLIN_VERSION
  75. compile group: "com.persagy", name: "persagy-kotlin-mybatis", version: PERSAGY_KOTLIN_VERSION
  76. compile group: "com.persagy", name: "persagy-kotlin-postgresql", version: PERSAGY_KOTLIN_VERSION
  77. compile group: "com.persagy", name: "persagy-service-base", version: PERSAGY_SERVICE_VERSION
  78. compile group: "com.persagy", name: "persagy-service-mybatis", version: PERSAGY_SERVICE_VERSION
  79. // TestNG 测试框架
  80. compile group: "org.testng", name: "testng", version: TESTNG_VERSION
  81. // Log 工具
  82. compile group: "org.projectlombok", name: "lombok", version: LOMBOK_VERSION
  83. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  84. //Gson
  85. compile 'com.google.code.gson:gson:2.8.0'
  86. // ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  87. // // 二维码与条形码
  88. // // https://mvnrepository.com/artifact/com.google.zxing/core
  89. // compile group: "com.google.zxing", name: "core", version: ZXING_VERSION
  90. }