build.gradle 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. apply plugin: 'java'
  2. def libraries = rootProject.ext.libraries
  3. dependencies {
  4. // shiro
  5. // compile(libraries."shiro-core", libraries."shiro-spring", libraries."shiro-cache")
  6. compileClasspath libraries."shiro"
  7. parentClasspath libraries."shiro"
  8. //swagger
  9. compileClasspath libraries."springfox-swagger2"
  10. parentClasspath libraries."springfox-swagger2"
  11. //mybatis
  12. compileClasspath libraries."mybatis-generator"
  13. parentClasspath libraries."mybatis-generator"
  14. // redis 依赖
  15. compileClasspath libraries."commons-pool2"
  16. parentClasspath libraries."commons-pool2"
  17. // cache
  18. compileClasspath libraries."ehcache", libraries."ehcache-api"
  19. parentClasspath libraries."ehcache", libraries."ehcache-api"
  20. // modelmapper
  21. compileClasspath 'com.github.rozidan:modelmapper-spring-boot-starter:1.0.0'
  22. parentClasspath 'com.github.rozidan:modelmapper-spring-boot-starter:1.0.0'
  23. // https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp
  24. // compileClasspath group: 'com.squareup.okhttp3', name: 'okhttp', version: '3.2.0'
  25. // parentClasspath group: 'com.squareup.okhttp3', name: 'okhttp', version: '3.2.0'
  26. compileClasspath group: 'com.aliyun', name: 'aliyun-java-sdk-core', version:'3.3.1'
  27. parentClasspath group: 'com.aliyun', name: 'aliyun-java-sdk-core', version:'3.3.1'
  28. compileClasspath group: 'com.aliyun', name: 'aliyun-java-sdk-dysmsapi', version: '1.0.0'
  29. parentClasspath group: 'com.aliyun', name: 'aliyun-java-sdk-dysmsapi', version: '1.0.0'
  30. compileClasspath group: 'com.aliyun.oss', name: 'aliyun-sdk-oss', version:'2.5.0'
  31. parentClasspath group: 'com.aliyun.oss', name: 'aliyun-sdk-oss', version:'2.5.0'
  32. compileClasspath 'com.alipay.sdk:alipay-sdk-java:3.7.110.ALL'
  33. parentClasspath 'com.alipay.sdk:alipay-sdk-java:3.7.110.ALL'
  34. compileClasspath 'com.thoughtworks.xstream:xstream:1.4.7'
  35. parentClasspath 'com.thoughtworks.xstream:xstream:1.4.7'
  36. }
  37. apply plugin: 'java-library'
  38. jar {
  39. // lib目录的清除和复制任务
  40. // dependsOn clearJar
  41. // dependsOn copyJar
  42. enabled=true
  43. }