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.

140 lines
4.5 KiB

8 months ago
8 months ago
3 months ago
3 months ago
8 months ago
2 weeks ago
8 months ago
5 months ago
8 months ago
  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. maven { name "Alibaba" ; url 'https://maven.aliyun.com/repository/public' }
  20. maven { name "Bstek" ; url 'https://nexus.bsdn.org/content/groups/public/' }
  21. maven { name "M2" ; url 'https://plugins.gradle.org/m2/' }
  22. }
  23. dependencies {
  24. implementation 'org.springframework.boot:spring-boot-starter-web'
  25. implementation 'org.springframework.boot:spring-boot-starter-aop'
  26. // implementation 'org.springframework.boot:spring-boot-devtools'
  27. implementation 'org.springframework.boot:spring-boot-starter-data-jdbc'
  28. implementation 'org.springframework.boot:spring-boot-starter'
  29. implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
  30. implementation 'org.springframework.boot:spring-boot-starter-validation' // 这是 Spring Boot 的验证启动器,包含 Hibernate Validator
  31. implementation 'org.hibernate.validator:hibernate-validator:8.0.0.Final' // 如果需要,显式添加 Hibernate Validator 依赖
  32. implementation 'org.springframework.boot:spring-boot-starter-freemarker'
  33. implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:3.0.3'
  34. implementation 'org.springframework.boot:spring-boot-starter-data-redis'
  35. // WebSocket 支持
  36. implementation 'org.springframework.boot:spring-boot-starter-websocket'
  37. //域控管理
  38. implementation 'org.springframework.boot:spring-boot-starter-data-ldap'
  39. //邮件的包
  40. implementation 'org.springframework.boot:spring-boot-starter-mail'
  41. // MyBatis-Plus Spring Boot Starter
  42. implementation 'com.baomidou:mybatis-plus-boot-starter:3.5.8'
  43. testImplementation 'org.springframework.boot:spring-boot-starter-test'
  44. //shiro依赖
  45. //implementation 'org.apache.shiro:shiro-spring:2.0.2:jakarta'
  46. //implementation 'org.apache.shiro:shiro-web:2.0.2:jakarta'
  47. //implementation 'org.apache.shiro:shiro-core:2.0.2:jakarta'
  48. //implementation 'jakarta.servlet:jakarta.servlet-api:5.0.0'
  49. implementation('org.apache.shiro:shiro-spring:1.13.0:jakarta') {
  50. exclude group: 'org.apache.shiro', module: 'shiro-core'
  51. exclude group: 'org.apache.shiro', module: 'shiro-web'
  52. }
  53. implementation 'org.apache.shiro:shiro-core:1.13.0:jakarta'
  54. implementation('org.apache.shiro:shiro-web:1.13.0:jakarta') {
  55. exclude group: 'org.apache.shiro', module: 'shiro-core'
  56. }
  57. implementation 'com.aliyun.oss:aliyun-sdk-oss:2.8.3'
  58. //阿里duid
  59. implementation 'com.alibaba:druid-spring-boot-3-starter:1.2.23'
  60. //fastjson2
  61. implementation 'com.alibaba.fastjson2:fastjson2:2.0.20'
  62. implementation 'com.alibaba.fastjson2:fastjson2-extension:2.0.20'
  63. implementation 'org.apache.commons:commons-lang3:3.7'
  64. implementation 'com.google.guava:guava:29.0-jre'
  65. //处理httpclient
  66. implementation 'org.apache.httpcomponents:httpclient:4.5'
  67. //数据库驱动
  68. implementation(fileTree('lib'));
  69. //ftp要使用的包
  70. implementation 'commons-net:commons-net:3.6'
  71. //
  72. implementation 'commons-lang:commons-lang:2.6'
  73. implementation 'commons-io:commons-io:2.11.0'
  74. implementation 'joda-time:joda-time:2.9.9'
  75. implementation 'io.jsonwebtoken:jjwt:0.12.1'
  76. //j2mod进行Modbus TCP通讯并获取数据
  77. implementation 'com.ghgande:j2mod:2.7.0'
  78. implementation 'com.google.code.gson:gson:2.8.9' // 使用最新稳定版本
  79. compileOnly 'org.projectlombok:lombok:1.18.30' // 使用最新版本
  80. annotationProcessor 'org.projectlombok:lombok:1.18.30' // 启用注解处理器
  81. implementation 'com.github.axet:kaptcha:0.0.9' // 使用最新稳定版本
  82. //pagehelper
  83. //implementation 'com.github.pagehelper:pagehelper-spring-boot-starter:1.4.2' // 使用合适的版本
  84. //implementation 'com.baomidou:mybatis-plus-jsqlparser'
  85. // easyexcel
  86. implementation 'com.alibaba:easyexcel:3.1.2'
  87. // Apache POI - 用于后端导出Excel(多sheet)- rqrq
  88. implementation 'org.apache.poi:poi:5.2.3'
  89. implementation 'org.apache.poi:poi-ooxml:5.2.3'
  90. // PDF生成依赖
  91. implementation 'com.itextpdf:itext7-core:7.2.5'
  92. implementation 'com.itextpdf:html2pdf:4.0.5'
  93. implementation 'com.google.zxing:core:3.5.3'
  94. implementation 'com.google.zxing:javase:3.5.3'
  95. }
  96. test {
  97. useJUnitPlatform()
  98. }
  99. processResources {
  100. duplicatesStrategy = 'include'
  101. }
  102. sourceSets {
  103. main {
  104. resources {
  105. //可以将java目录下的所有非.java资源打包到classes下
  106. srcDir 'src/main/resources'
  107. }
  108. }
  109. }