CCL_QMS检验
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.

178 lines
6.7 KiB

  1. buildscript {
  2. ext {
  3. springBootVersion = '3.3.5'
  4. }
  5. repositories {
  6. mavenCentral()
  7. }
  8. dependencies {
  9. classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
  10. }
  11. }
  12. apply plugin: 'java'
  13. apply plugin: 'eclipse'
  14. apply plugin: 'org.springframework.boot'
  15. apply plugin: 'io.spring.dependency-management'
  16. sourceCompatibility = 21
  17. targetCompatibility = 21
  18. repositories {
  19. mavenCentral()
  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. maven { name "Jitpack" ; url 'https://jitpack.io' }
  24. mavenLocal()
  25. }
  26. dependencies {
  27. implementation 'org.springframework.boot:spring-boot-starter-web'
  28. implementation 'org.springframework.boot:spring-boot-starter-aop'
  29. // implementation 'org.springframework.boot:spring-boot-devtools'
  30. implementation 'org.springframework.boot:spring-boot-starter-data-jdbc'
  31. implementation 'org.springframework.boot:spring-boot-starter'
  32. implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
  33. implementation 'org.springframework.boot:spring-boot-starter-validation' // 这是 Spring Boot 的验证启动器,包含 Hibernate Validator
  34. implementation 'org.hibernate.validator:hibernate-validator:8.0.0.Final' // 如果需要,显式添加 Hibernate Validator 依赖
  35. // Swagger/OpenAPI (for SwaggerConfig using io.swagger.v3.oas.models.*)
  36. implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.6.0'
  37. implementation 'io.swagger.core.v3:swagger-models:2.2.22'
  38. // Keep Swagger 2 annotations for existing @ApiModel/@ApiModelProperty usage
  39. implementation 'io.swagger:swagger-annotations:1.6.14'
  40. implementation 'org.springframework.boot:spring-boot-starter-freemarker'
  41. implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:3.0.3'
  42. implementation 'org.springframework.boot:spring-boot-starter-data-redis'
  43. // WebSocket 支持
  44. implementation 'org.springframework.boot:spring-boot-starter-websocket'
  45. //域控管理
  46. implementation 'org.springframework.boot:spring-boot-starter-data-ldap'
  47. //邮件的包
  48. implementation 'org.springframework.boot:spring-boot-starter-mail'
  49. // MyBatis-Plus Spring Boot Starter
  50. implementation 'com.baomidou:mybatis-plus-boot-starter:3.5.8'
  51. // Quartz 定时任务
  52. implementation 'org.springframework.boot:spring-boot-starter-quartz'
  53. implementation('org.quartz-scheduler:quartz:2.3.2') {
  54. exclude group: 'com.mchange', module: 'c3p0'
  55. }
  56. // Jakarta API 依赖 (Java 9+ 必须)
  57. implementation 'jakarta.annotation:jakarta.annotation-api:2.1.1'
  58. implementation 'jakarta.servlet:jakarta.servlet-api:6.0.0'
  59. implementation 'jakarta.validation:jakarta.validation-api:3.0.2'
  60. implementation 'jakarta.persistence:jakarta.persistence-api:3.1.0'
  61. implementation 'jakarta.mail:jakarta.mail-api:2.1.3'
  62. implementation 'org.eclipse.angus:angus-mail:2.0.3' // Jakarta Mail 实现
  63. testImplementation 'org.springframework.boot:spring-boot-starter-test'
  64. //shiro依赖
  65. implementation('org.apache.shiro:shiro-spring:1.13.0:jakarta') {
  66. exclude group: 'org.apache.shiro', module: 'shiro-core'
  67. exclude group: 'org.apache.shiro', module: 'shiro-web'
  68. }
  69. implementation 'org.apache.shiro:shiro-core:1.13.0:jakarta'
  70. implementation('org.apache.shiro:shiro-web:1.13.0:jakarta') {
  71. exclude group: 'org.apache.shiro', module: 'shiro-core'
  72. }
  73. // 云存储 SDK
  74. implementation 'com.aliyun.oss:aliyun-sdk-oss:2.8.3'
  75. implementation 'com.qiniu:qiniu-java-sdk:7.2.23'
  76. implementation('com.qcloud:cos_api:4.4') {
  77. exclude group: 'org.slf4j', module: 'slf4j-log4j12'
  78. }
  79. //阿里duid
  80. implementation 'com.alibaba:druid-spring-boot-3-starter:1.2.23'
  81. //fastjson2 (更新到最新版本以包含完整的 parser 包)
  82. implementation 'com.alibaba.fastjson2:fastjson2:2.0.53'
  83. implementation 'com.alibaba.fastjson2:fastjson2-extension-spring6:2.0.53'
  84. // Keep fastjson 1.x for legacy imports like com.alibaba.fastjson.annotation.JSONField
  85. implementation 'com.alibaba:fastjson:1.2.83'
  86. implementation 'org.apache.commons:commons-lang3:3.14.0'
  87. implementation 'org.apache.commons:commons-text:1.11.0' // StringEscapeUtils 已移到此库
  88. implementation 'com.google.guava:guava:29.0-jre'
  89. //处理httpclient
  90. implementation 'org.apache.httpcomponents:httpclient:4.5'
  91. //数据库驱动
  92. implementation 'com.microsoft.sqlserver:mssql-jdbc:13.4.0.jre11' // SQL Server JDBC 驱动 (Java 11+,兼容 JDK21)
  93. // 本地JAR文件
  94. implementation(fileTree('lib'))
  95. implementation(fileTree('jar')) // Aspose Words/Cells 等本地 JAR
  96. //ftp要使用的包
  97. implementation 'commons-net:commons-net:3.6'
  98. //
  99. implementation 'commons-lang:commons-lang:2.6'
  100. implementation 'commons-io:commons-io:2.15.1' // 升级到最新版本以支持 UnsynchronizedByteArrayOutputStream
  101. implementation 'joda-time:joda-time:2.9.9'
  102. // JWT 依赖 (0.12.x 版本需要分开引入)
  103. implementation 'io.jsonwebtoken:jjwt-api:0.12.5'
  104. runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.12.5'
  105. runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.12.5'
  106. //j2mod进行Modbus TCP通讯并获取数据
  107. implementation 'com.ghgande:j2mod:2.7.0'
  108. implementation 'com.google.code.gson:gson:2.8.9' // 使用最新稳定版本
  109. compileOnly 'org.projectlombok:lombok:1.18.30' // 使用最新版本
  110. annotationProcessor 'org.projectlombok:lombok:1.18.30' // 启用注解处理器
  111. implementation 'com.github.axet:kaptcha:0.0.9' // 使用最新稳定版本
  112. // PageHelper 分页插件
  113. implementation 'com.github.pagehelper:pagehelper-spring-boot-starter:2.1.0'
  114. // easyexcel
  115. implementation 'com.alibaba:easyexcel:3.1.2'
  116. // legacy net.sf.json.* API used in finished-product module
  117. implementation 'net.sf.json-lib:json-lib:2.4:jdk15'
  118. // PDF生成依赖
  119. implementation 'com.itextpdf:itext7-core:7.2.5'
  120. implementation 'com.itextpdf:html2pdf:4.0.5'
  121. // Excel/Word 处理库
  122. implementation 'com.luhuiguo:aspose-cells:23.1'
  123. implementation 'org.apache.poi:poi:5.2.3'
  124. implementation 'org.apache.poi:poi-ooxml:5.2.3'
  125. implementation 'org.apache.xmlbeans:xmlbeans:5.2.2'
  126. implementation 'com.google.zxing:core:3.5.3'
  127. implementation 'com.google.zxing:javase:3.5.3'
  128. implementation 'cn.hutool:hutool-all:5.8.44'
  129. }
  130. test {
  131. useJUnitPlatform()
  132. }
  133. processResources {
  134. duplicatesStrategy = 'include'
  135. }
  136. sourceSets {
  137. main {
  138. resources {
  139. //可以将java目录下的所有非.java资源打包到classes下
  140. srcDir 'src/main/resources'
  141. }
  142. }
  143. }