You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

130 lines
4.5 KiB

9 months ago
​
2 weeks ago
​
9 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
1 month ago
​
9 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
1 month ago
​
​
9 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. buildscript {
  2. ext {
  3. // 升到 3.3.7:内嵌 Tomcat 从 10.1.31 到 10.1.34,覆盖 CVE-2024-50379。
  4. springBootVersion = '3.3.7'
  5. }
  6. repositories {
  7. mavenCentral()
  8. }
  9. dependencies {
  10. classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
  11. }
  12. }
  13. apply plugin: 'java'
  14. apply plugin: 'eclipse'
  15. apply plugin: 'org.springframework.boot'
  16. apply plugin: 'io.spring.dependency-management'
  17. sourceCompatibility = 21
  18. targetCompatibility = 21
  19. repositories {
  20. maven { name "Alibaba" ; url 'https://maven.aliyun.com/repository/public' }
  21. maven { name "Bstek" ; url 'https://nexus.bsdn.org/content/groups/public/' }
  22. maven { name "M2" ; url 'https://plugins.gradle.org/m2/' }
  23. }
  24. dependencies {
  25. implementation ('org.springframework.boot:spring-boot-starter-web'){
  26. exclude group: 'commons-logging', module: 'commons-logging'
  27. }
  28. implementation 'io.swagger:swagger-annotations:1.6.2'
  29. implementation 'org.springframework.boot:spring-boot-starter-aop'
  30. implementation 'org.springframework.boot:spring-boot-devtools'
  31. implementation 'org.springframework.boot:spring-boot-starter-data-jdbc'
  32. implementation 'org.springframework.boot:spring-boot-starter'
  33. implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
  34. implementation 'org.springframework.boot:spring-boot-starter-validation' // 这是 Spring Boot 的验证启动器,包含 Hibernate Validator
  35. implementation 'org.hibernate.validator:hibernate-validator:8.0.0.Final' // 如果需要,显式添加 Hibernate Validator 依赖
  36. implementation 'org.springframework.boot:spring-boot-starter-freemarker'
  37. implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:3.0.3'
  38. implementation 'org.springframework.boot:spring-boot-starter-data-redis'
  39. // 邮件相关链路里使用到 fastjson 兼容坐标,这里与 fastjson2 统一到安全版本,避免版本漂移。
  40. implementation 'com.alibaba:fastjson:2.0.64'
  41. implementation 'org.springframework.boot:spring-boot-starter-mail'
  42. // MyBatis-Plus Spring Boot Starter
  43. implementation 'com.baomidou:mybatis-plus-boot-starter:3.5.8'
  44. testImplementation 'org.springframework.boot:spring-boot-starter-test'
  45. implementation 'com.baomidou:mybatis-plus-generator:3.5.12'
  46. //shiro依赖
  47. //implementation 'org.apache.shiro:shiro-spring:2.0.2:jakarta'
  48. //implementation 'org.apache.shiro:shiro-web:2.0.2:jakarta'
  49. //implementation 'org.apache.shiro:shiro-core:2.0.2:jakarta'
  50. //implementation 'jakarta.servlet:jakarta.servlet-api:5.0.0'
  51. implementation('org.apache.shiro:shiro-spring:1.13.0:jakarta') {
  52. exclude group: 'org.apache.shiro', module: 'shiro-core'
  53. exclude group: 'org.apache.shiro', module: 'shiro-web'
  54. }
  55. implementation 'org.apache.shiro:shiro-core:1.13.0:jakarta'
  56. implementation('org.apache.shiro:shiro-web:1.13.0:jakarta') {
  57. exclude group: 'org.apache.shiro', module: 'shiro-core'
  58. }
  59. implementation 'com.aliyun.oss:aliyun-sdk-oss:2.8.3'
  60. //阿里duid
  61. implementation 'com.alibaba:druid-spring-boot-3-starter:1.2.23'
  62. // fastjson2 安全版本统一升级:修复云平台扫描命中的 <= 2.0.62 风险。
  63. implementation 'com.alibaba.fastjson2:fastjson2:2.0.64'
  64. implementation 'com.alibaba.fastjson2:fastjson2-extension:2.0.64'
  65. implementation 'org.apache.commons:commons-lang3:3.7'
  66. implementation 'com.google.guava:guava:29.0-jre'
  67. //处理httpclient
  68. implementation 'org.apache.httpcomponents:httpclient:4.5'
  69. //数据库驱动
  70. implementation(fileTree('lib'));
  71. //ftp要使用的包
  72. implementation 'commons-net:commons-net:3.6'
  73. //
  74. implementation 'commons-lang:commons-lang:2.6'
  75. implementation 'commons-io:commons-io:2.5'
  76. implementation 'joda-time:joda-time:2.9.9'
  77. implementation 'io.jsonwebtoken:jjwt:0.12.1'
  78. //j2mod进行Modbus TCP通讯并获取数据
  79. implementation 'com.ghgande:j2mod:2.7.0'
  80. implementation 'com.google.code.gson:gson:2.8.9' // 使用最新稳定版本
  81. compileOnly 'org.projectlombok:lombok:1.18.30' // 使用最新版本
  82. annotationProcessor 'org.projectlombok:lombok:1.18.30' // 启用注解处理器
  83. implementation 'com.github.axet:kaptcha:0.0.9' // 使用最新稳定版本
  84. //pagehelper
  85. //implementation 'com.github.pagehelper:pagehelper-spring-boot-starter:1.4.2' // 使用合适的版本
  86. //implementation 'com.baomidou:mybatis-plus-jsqlparser'
  87. // easyexcel
  88. implementation 'com.alibaba:easyexcel:3.1.2'
  89. }
  90. test {
  91. useJUnitPlatform()
  92. }
  93. processResources {
  94. duplicatesStrategy = 'include'
  95. }
  96. sourceSets {
  97. main {
  98. resources {
  99. //可以将java目录下的所有非.java资源打包到classes下
  100. srcDir 'src/main/resources'
  101. }
  102. }
  103. }