build.gradle 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. group 'com.gxzc.zen'
  2. version '1.0-SNAPSHOT'
  3. buildscript {
  4. ext {
  5. kotlin_version = '1.2.21'
  6. spring_boot_version = '1.5.10.RELEASE'
  7. junit_version = '4.12'
  8. commons_io_version = '2.5'
  9. commons_lang3_version = '3.5'
  10. commons_codec_version = '1.10'
  11. commons_fileupload_version = '1.3.2'
  12. slf4j_api_version = '1.7.25'
  13. ehcache_version = '3.4.0'
  14. ehcache_core_version = '2.6.11'
  15. mysql_connector_version = '5.1.45'
  16. alidruid_version = '1.1.6'
  17. mybatis_plus_version = '2.1.8'
  18. mybatis_plus_boot_version = '1.0.5'
  19. activiti_starter_version = '6.0.0'
  20. // rabbitmq_version = '5.1.2'
  21. xxljob_version = '1.9.0'
  22. swagger_version = '2.7.0'
  23. fastjson_version = '1.2.44'
  24. pinyin4j_version = '2.5.1'
  25. kisso_version = '3.7.0'
  26. // caffeine_version = 'a'
  27. }
  28. repositories {
  29. mavenCentral()
  30. }
  31. dependencies {
  32. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  33. classpath "org.jetbrains.kotlin:kotlin-allopen:$kotlin_version"
  34. classpath "org.springframework.boot:spring-boot-gradle-plugin:$spring_boot_version"
  35. }
  36. }
  37. allprojects {}
  38. subprojects {
  39. apply plugin: 'java'
  40. apply plugin: 'kotlin'
  41. apply plugin: 'kotlin-spring'
  42. apply plugin: 'org.springframework.boot'
  43. sourceCompatibility = 1.8
  44. targetCompatibility = 1.8
  45. repositories {
  46. mavenCentral()
  47. jcenter()
  48. }
  49. dependencies {
  50. // Kotlin
  51. compile("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version")
  52. compile("org.jetbrains.kotlin:kotlin-reflect:$kotlin_version")
  53. // SpringBoot Starter
  54. compile('org.springframework.boot:spring-boot-starter')
  55. compile('org.springframework.boot:spring-boot-starter-web')
  56. compile('org.springframework.boot:spring-boot-starter-aop')
  57. compile('org.springframework.boot:spring-boot-starter-amqp')
  58. compile('org.springframework.boot:spring-boot-starter-jta-atomikos')
  59. compile('org.springframework.boot:spring-boot-starter-cache')
  60. testCompile('org.springframework.boot:spring-boot-starter-test')
  61. testCompile("junit:junit:$junit_version")
  62. // commons
  63. compile("commons-io:commons-io:$commons_io_version")
  64. compile("org.apache.commons:commons-lang3:$commons_lang3_version")
  65. compile("commons-codec:commons-codec:$commons_codec_version")
  66. compile("commons-fileupload:commons-fileupload:$commons_fileupload_version")
  67. // logger
  68. compile("org.slf4j:slf4j-api:$slf4j_api_version")
  69. compile("javax.servlet:javax.servlet-api:3.1.0")
  70. compile("javax.servlet:servlet-api:2.5")
  71. // cache
  72. compile('com.github.ben-manes.caffeine:caffeine')
  73. // compile("org.ehcache:ehcache:$ehcache_version")
  74. // compile("net.sf.ehcache:ehcache-core:$ehcache_core_version")
  75. // db
  76. compile("mysql:mysql-connector-java:$mysql_connector_version")
  77. compile("com.alibaba:druid-spring-boot-starter:1.1.6")
  78. // compile("io.shardingjdbc:sharding-jdbc-core-spring-boot-starter:2.0.2")
  79. // mybatis-plus
  80. compile("com.baomidou:mybatis-plus:$mybatis_plus_version")
  81. compile("com.baomidou:mybatisplus-spring-boot-starter:$mybatis_plus_boot_version")
  82. // job
  83. compile("com.xuxueli:xxl-job-core:$xxljob_version")
  84. // swagger
  85. compile("io.springfox:springfox-swagger2:$swagger_version")
  86. compile("io.springfox:springfox-swagger-ui:$swagger_version")
  87. // utils
  88. compile("org.projectlombok:lombok:1.16.18")
  89. // compile("com.google.guava:guava:23.6-jre")
  90. compile("com.github.penggle:kaptcha:2.3.2")
  91. compile("com.alibaba:fastjson:$fastjson_version")
  92. compile("com.belerweb:pinyin4j:$pinyin4j_version")
  93. // sso
  94. compile("com.baomidou:kisso:$kisso_version")
  95. // activiti
  96. // compile("org.activiti:activiti-spring-boot-starter-basic:$activiti_starter_version")
  97. // compile("org.activiti:activiti-spring-boot-starter-rest-api:$activiti_starter_version")
  98. // compile("org.activiti:activiti-spring-boot-starter-actuator:$activiti_starter_version")
  99. compile("org.apache.velocity:velocity-engine-core:2.0")
  100. compile('com.github.hotchemi:khronos:0.9.0')
  101. }
  102. }