1
0

build.gradle 2.2 KB

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