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.

129 lines
4.2 KiB

2 weeks 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. exclude group: 'commons-logging', module: 'commons-logging'
  26. }
  27. implementation 'io.swagger:swagger-annotations:1.6.2'
  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. implementation 'org.springframework.boot:spring-boot-starter-freemarker'
  36. implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:3.0.3'
  37. implementation 'org.springframework.boot:spring-boot-starter-data-redis'
  38. //邮件的包
  39. implementation 'com.alibaba:fastjson:2.0.57'
  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. implementation 'com.baomidou:mybatis-plus-generator:3.5.12'
  45. //shiro依赖
  46. //implementation 'org.apache.shiro:shiro-spring:2.0.2:jakarta'
  47. //implementation 'org.apache.shiro:shiro-web:2.0.2:jakarta'
  48. //implementation 'org.apache.shiro:shiro-core:2.0.2:jakarta'
  49. //implementation 'jakarta.servlet:jakarta.servlet-api:5.0.0'
  50. implementation('org.apache.shiro:shiro-spring:1.13.0:jakarta') {
  51. exclude group: 'org.apache.shiro', module: 'shiro-core'
  52. exclude group: 'org.apache.shiro', module: 'shiro-web'
  53. }
  54. implementation 'org.apache.shiro:shiro-core:1.13.0:jakarta'
  55. implementation('org.apache.shiro:shiro-web:1.13.0:jakarta') {
  56. exclude group: 'org.apache.shiro', module: 'shiro-core'
  57. }
  58. implementation 'com.aliyun.oss:aliyun-sdk-oss:2.8.3'
  59. //阿里duid
  60. implementation 'com.alibaba:druid-spring-boot-3-starter:1.2.23'
  61. //fastjson2
  62. implementation 'com.alibaba.fastjson2:fastjson2:2.0.20'
  63. implementation 'com.alibaba.fastjson2:fastjson2-extension:2.0.20'
  64. implementation 'org.apache.commons:commons-lang3:3.7'
  65. implementation 'com.google.guava:guava:29.0-jre'
  66. //处理httpclient
  67. implementation 'org.apache.httpcomponents:httpclient:4.5'
  68. //数据库驱动
  69. implementation(fileTree('lib'));
  70. //ftp要使用的包
  71. implementation 'commons-net:commons-net:3.6'
  72. //
  73. implementation 'commons-lang:commons-lang:2.6'
  74. implementation 'commons-io:commons-io:2.5'
  75. implementation 'joda-time:joda-time:2.9.9'
  76. implementation 'io.jsonwebtoken:jjwt:0.12.1'
  77. //j2mod进行Modbus TCP通讯并获取数据
  78. implementation 'com.ghgande:j2mod:2.7.0'
  79. implementation 'com.google.code.gson:gson:2.8.9' // 使用最新稳定版本
  80. compileOnly 'org.projectlombok:lombok:1.18.30' // 使用最新版本
  81. annotationProcessor 'org.projectlombok:lombok:1.18.30' // 启用注解处理器
  82. implementation 'com.github.axet:kaptcha:0.0.9' // 使用最新稳定版本
  83. //pagehelper
  84. //implementation 'com.github.pagehelper:pagehelper-spring-boot-starter:1.4.2' // 使用合适的版本
  85. //implementation 'com.baomidou:mybatis-plus-jsqlparser'
  86. // easyexcel
  87. implementation 'com.alibaba:easyexcel:3.1.2'
  88. }
  89. test {
  90. useJUnitPlatform()
  91. }
  92. processResources {
  93. duplicatesStrategy = 'include'
  94. }
  95. sourceSets {
  96. main {
  97. resources {
  98. //可以将java目录下的所有非.java资源打包到classes下
  99. srcDir 'src/main/resources'
  100. }
  101. }
  102. }