dependencyDefine.gradle 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /**
  2. * 依赖包的定义。
  3. *
  4. * 这种定义方式的优点是在顶级项目目录下引入,在子项目中也可以直接用了。
  5. *
  6. */
  7. // jar包的版本号
  8. ext.versions = [
  9. springBoot:'2.1.3.RELEASE',
  10. shiro: '1.4.0',
  11. springfox: '2.9.2',
  12. ]
  13. // 各种可能会用到的jar包
  14. ext.libraries = [
  15. // shiro
  16. "shiro":"org.apache.shiro:shiro-spring-boot-web-starter:${ext.versions.shiro}",
  17. "shiro-core": "org.apache.shiro:shiro-core:${ext.versions.shiro}",
  18. "shiro-spring": "org.apache.shiro:shiro-spring:${ext.versions.shiro}",
  19. "shiro-cache": "org.apache.shiro:shiro-cache:${ext.versions.shiro}",
  20. // swagger
  21. "springfox-bean-validators": "io.springfox:springfox-bean-validators:${ext.versions.springfox}",
  22. "springfox-swagger2": "io.springfox:springfox-swagger2:${ext.versions.springfox}",
  23. "springfox-swagger-ui": "io.springfox:springfox-swagger-ui:${ext.versions.springfox}",
  24. // mybatis
  25. "mybatis":"org.mybatis.spring.boot:mybatis-spring-boot-starter:1.3.4",
  26. "mybatis-mapper": "tk.mybatis:mapper-spring-boot-starter:2.1.5",
  27. "mybatis-generator": "org.mybatis.generator:mybatis-generator-core:1.3.7",
  28. "mybatis-mapping-generator": "tk.mybatis:mapper-generator:1.1.5",
  29. "mybatis-generator-plugin":"com.itfsw:mybatis-generator-plugin:1.3.2",
  30. "mybatis-mysql": "mysql:mysql-connector-java",
  31. // 通过文件配置page,不使用starter
  32. // "mybatis-page": "com.github.pagehelper:pagehelper-spring-boot-starter:1.2.10",
  33. "mybatis-page": "com.github.pagehelper:pagehelper:5.1.8",
  34. // redis
  35. "commons-pool2": "org.apache.commons:commons-pool2:2.6.2",
  36. // cache
  37. "ehcache": "org.ehcache:ehcache:3.7.1",
  38. "ehcache-api": "javax.cache:cache-api:1.1.0",
  39. // flyway
  40. "flyway": "org.flywaydb:flyway-core:5.2.4",
  41. "flyway-h2": "com.h2database:h2:1.4.197",
  42. "flyway-mysql": "mysql:mysql-connector-java",
  43. ]