build.gradle 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. buildscript {
  2. ext {
  3. kotlin_version = '1.2.51'
  4. spring_boot_version = '1.5.10.RELEASE'
  5. junit_version = '4.12'
  6. commons_io_version = '2.5'
  7. commons_lang3_version = '3.5'
  8. commons_codec_version = '1.10'
  9. commons_fileupload_version = '1.3.2'
  10. slf4j_api_version = '1.7.25'
  11. ehcache_version = '3.4.0'
  12. ehcache_core_version = '2.6.11'
  13. mysql_connector_version = '5.1.45'
  14. alidruid_version = '1.1.6'
  15. mybatis_plus_version = '2.2.0'
  16. mybatis_plus_boot_version = '1.0.5'
  17. activiti_starter_version = '6.0.0'
  18. // rocketmq_starter_version = '1.1.0-RELEASE'
  19. rocketmq_starter_version = '0.1.0'
  20. xxljob_version = '1.9.0'
  21. swagger_version = '2.7.0'
  22. fastjson_version = '1.2.44'
  23. pinyin4j_version = '2.5.1'
  24. // kisso_version = '3.6.13'
  25. caffeine_version = '2.6.1'
  26. shiro_version = '1.4.0'
  27. dubbo_starter_version = '0.1.0'
  28. dubbo_version = "2.6.1"
  29. jsqlparser_version = '1.2'
  30. fastdfs_client_version = '1.26.2'
  31. }
  32. repositories {
  33. mavenCentral()
  34. maven { url = 'http://repo.spring.io/plugins-release' }
  35. }
  36. dependencies {
  37. classpath 'io.spring.gradle:propdeps-plugin:0.0.9.RELEASE'
  38. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  39. classpath "org.jetbrains.kotlin:kotlin-allopen:$kotlin_version"
  40. classpath "org.springframework.boot:spring-boot-gradle-plugin:$spring_boot_version"
  41. }
  42. }
  43. allprojects {
  44. group = "com.gxzc.zen"
  45. version = "1.0-SNAPSHOT"
  46. }
  47. subprojects {
  48. apply plugin: 'java'
  49. apply plugin: 'kotlin'
  50. apply plugin: 'kotlin-kapt'
  51. apply plugin: 'kotlin-spring'
  52. apply plugin: 'org.springframework.boot'
  53. apply plugin: 'propdeps'
  54. apply plugin: 'propdeps-maven'
  55. apply plugin: 'propdeps-idea'
  56. apply plugin: 'propdeps-eclipse'
  57. sourceCompatibility = 1.8
  58. targetCompatibility = 1.8
  59. [compileJava, compileTestJava, javadoc]*.options*.encoding = 'UTF-8'
  60. compileJava.dependsOn(processResources)
  61. repositories {
  62. mavenCentral()
  63. jcenter()
  64. }
  65. dependencies {
  66. // Kotlin
  67. compile("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version")
  68. compile("org.jetbrains.kotlin:kotlin-reflect:$kotlin_version")
  69. kapt("org.springframework.boot:spring-boot-configuration-processor")
  70. optional("org.springframework.boot:spring-boot-configuration-processor")
  71. // SpringBoot Starter
  72. compile('org.springframework.boot:spring-boot-starter')
  73. compile('org.springframework.boot:spring-boot-starter-web')
  74. compile('org.springframework.boot:spring-boot-starter-aop')
  75. compile('org.springframework.boot:spring-boot-starter-actuator')
  76. compile('org.springframework.boot:spring-boot-starter-websocket')
  77. // compile('org.springframework.boot:spring-boot-starter-amqp')
  78. // compile('org.springframework.boot:spring-boot-starter-jta-atomikos')
  79. compile('org.springframework.boot:spring-boot-starter-cache')
  80. compile('org.springframework.boot:spring-boot-starter-data-redis')
  81. testCompile('org.springframework.boot:spring-boot-starter-test')
  82. // testCompile("junit:junit:$junit_version")
  83. // session
  84. // compile('org.springframework.session:spring-session-data-redis')
  85. // mq
  86. // compile("org.apache.rocketmq:rocketmq-client:$rocketmq_version")
  87. // compile("com.qianmi:spring-boot-starter-rocketmq:$rocketmq_starter_version")
  88. compile("com.maihaoche:spring-boot-starter-rocketmq:$rocketmq_starter_version")
  89. // shiro
  90. compile("org.apache.shiro:shiro-spring:$shiro_version")
  91. // commons
  92. compile("commons-io:commons-io:$commons_io_version")
  93. compile("org.apache.commons:commons-lang3:$commons_lang3_version")
  94. compile("commons-codec:commons-codec:$commons_codec_version")
  95. compile("commons-fileupload:commons-fileupload:$commons_fileupload_version")
  96. // logger
  97. compile("org.slf4j:slf4j-api:$slf4j_api_version")
  98. compile("javax.servlet:javax.servlet-api:3.1.0")
  99. compile("javax.servlet:servlet-api:2.5")
  100. // cache
  101. compile("com.github.ben-manes.caffeine:caffeine:$caffeine_version")
  102. // compile("org.ehcache:ehcache:$ehcache_version")
  103. // compile("net.sf.ehcache:ehcache-core:$ehcache_core_version")
  104. // db
  105. compile("mysql:mysql-connector-java:$mysql_connector_version")
  106. compile("com.alibaba:druid-spring-boot-starter:$alidruid_version")
  107. // compile("io.shardingjdbc:sharding-jdbc-core-spring-boot-starter:2.0.2")
  108. // mybatis-plus
  109. compile("com.baomidou:mybatis-plus:$mybatis_plus_version")
  110. compile("com.baomidou:mybatisplus-spring-boot-starter:$mybatis_plus_boot_version")
  111. // job
  112. compile("com.xuxueli:xxl-job-core:$xxljob_version")
  113. // swagger
  114. compile("io.springfox:springfox-swagger2:$swagger_version")
  115. compile("io.springfox:springfox-swagger-ui:$swagger_version")
  116. // utils
  117. compile("org.projectlombok:lombok:1.16.18")
  118. // compile("com.google.guava:guava:23.6-jre")
  119. // compile("com.github.penggle:kaptcha:2.3.2")
  120. compile("com.alibaba:fastjson:$fastjson_version")
  121. compile("com.belerweb:pinyin4j:$pinyin4j_version")
  122. // compile('com.github.hotchemi:khronos:0.9.0')
  123. compile('com.github.shihyuho:jackson-dynamic-filter:1.0')
  124. // rpc
  125. compile("com.alibaba.boot:dubbo-spring-boot-starter:$dubbo_starter_version")
  126. {
  127. exclude group: "com.alibaba", module: "dubbo"
  128. }
  129. compile("com.alibaba:dubbo:$dubbo_version")
  130. // activiti
  131. // compile("org.activiti:activiti-spring-boot-starter-basic:$activiti_starter_version")
  132. // compile("org.activiti:activiti-spring-boot-starter-rest-api:$activiti_starter_version")
  133. // compile("org.activiti:activiti-spring-boot-starter-actuator:$activiti_starter_version")
  134. compile("org.apache.velocity:velocity-engine-core:2.0")
  135. // sql parser
  136. compile("com.github.jsqlparser:jsqlparser:$jsqlparser_version")
  137. // fastdfs
  138. compile("com.github.tobato:fastdfs-client:$fastdfs_client_version")
  139. ext.jarTree = fileTree(dir: 'libs', include: '**/*.jar')
  140. compile jarTree
  141. }
  142. tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
  143. kotlinOptions {
  144. jvmTarget = "1.8"
  145. }
  146. }
  147. }