build.gradle 4.8 KB

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