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.2 KiB
130 lines
4.2 KiB
buildscript {
|
|
ext {
|
|
springBootVersion = '3.3.5'
|
|
}
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
|
|
}
|
|
}
|
|
|
|
apply plugin: 'java'
|
|
apply plugin: 'eclipse'
|
|
apply plugin: 'org.springframework.boot'
|
|
apply plugin: 'io.spring.dependency-management'
|
|
|
|
sourceCompatibility = 21
|
|
targetCompatibility = 21
|
|
|
|
repositories {
|
|
maven { name "Alibaba" ; url 'https://maven.aliyun.com/repository/public' }
|
|
maven { name "Bstek" ; url 'https://nexus.bsdn.org/content/groups/public/' }
|
|
maven { name "M2" ; url 'https://plugins.gradle.org/m2/' }
|
|
}
|
|
|
|
dependencies {
|
|
implementation ('org.springframework.boot:spring-boot-starter-web'){
|
|
exclude group: 'commons-logging', module: 'commons-logging'
|
|
}
|
|
implementation 'io.swagger:swagger-annotations:1.6.2'
|
|
implementation 'org.springframework.boot:spring-boot-starter-aop'
|
|
implementation 'org.springframework.boot:spring-boot-devtools'
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-jdbc'
|
|
implementation 'org.springframework.boot:spring-boot-starter'
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
|
implementation 'org.springframework.boot:spring-boot-starter-validation' // 这是 Spring Boot 的验证启动器,包含 Hibernate Validator
|
|
implementation 'org.hibernate.validator:hibernate-validator:8.0.0.Final' // 如果需要,显式添加 Hibernate Validator 依赖
|
|
implementation 'org.springframework.boot:spring-boot-starter-freemarker'
|
|
implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:3.0.3'
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
|
|
//邮件的包
|
|
implementation 'com.alibaba:fastjson:2.0.57'
|
|
implementation 'org.springframework.boot:spring-boot-starter-mail'
|
|
// MyBatis-Plus Spring Boot Starter
|
|
implementation 'com.baomidou:mybatis-plus-boot-starter:3.5.8'
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
|
implementation 'com.baomidou:mybatis-plus-generator:3.5.12'
|
|
|
|
//shiro依赖
|
|
//implementation 'org.apache.shiro:shiro-spring:2.0.2:jakarta'
|
|
//implementation 'org.apache.shiro:shiro-web:2.0.2:jakarta'
|
|
//implementation 'org.apache.shiro:shiro-core:2.0.2:jakarta'
|
|
//implementation 'jakarta.servlet:jakarta.servlet-api:5.0.0'
|
|
implementation('org.apache.shiro:shiro-spring:1.13.0:jakarta') {
|
|
exclude group: 'org.apache.shiro', module: 'shiro-core'
|
|
exclude group: 'org.apache.shiro', module: 'shiro-web'
|
|
}
|
|
|
|
implementation 'org.apache.shiro:shiro-core:1.13.0:jakarta'
|
|
|
|
implementation('org.apache.shiro:shiro-web:1.13.0:jakarta') {
|
|
exclude group: 'org.apache.shiro', module: 'shiro-core'
|
|
}
|
|
|
|
|
|
implementation 'com.aliyun.oss:aliyun-sdk-oss:2.8.3'
|
|
|
|
|
|
//阿里duid
|
|
implementation 'com.alibaba:druid-spring-boot-3-starter:1.2.23'
|
|
//fastjson2
|
|
implementation 'com.alibaba.fastjson2:fastjson2:2.0.20'
|
|
implementation 'com.alibaba.fastjson2:fastjson2-extension:2.0.20'
|
|
implementation 'org.apache.commons:commons-lang3:3.7'
|
|
|
|
implementation 'com.google.guava:guava:29.0-jre'
|
|
//处理httpclient
|
|
implementation 'org.apache.httpcomponents:httpclient:4.5'
|
|
|
|
//数据库驱动
|
|
implementation(fileTree('lib'));
|
|
//ftp要使用的包
|
|
implementation 'commons-net:commons-net:3.6'
|
|
//
|
|
implementation 'commons-lang:commons-lang:2.6'
|
|
implementation 'commons-io:commons-io:2.5'
|
|
implementation 'joda-time:joda-time:2.9.9'
|
|
|
|
implementation 'io.jsonwebtoken:jjwt:0.12.1'
|
|
|
|
|
|
//j2mod进行Modbus TCP通讯并获取数据
|
|
implementation 'com.ghgande:j2mod:2.7.0'
|
|
|
|
|
|
implementation 'com.google.code.gson:gson:2.8.9' // 使用最新稳定版本
|
|
|
|
compileOnly 'org.projectlombok:lombok:1.18.30' // 使用最新版本
|
|
annotationProcessor 'org.projectlombok:lombok:1.18.30' // 启用注解处理器
|
|
|
|
|
|
implementation 'com.github.axet:kaptcha:0.0.9' // 使用最新稳定版本
|
|
|
|
//pagehelper
|
|
//implementation 'com.github.pagehelper:pagehelper-spring-boot-starter:1.4.2' // 使用合适的版本
|
|
//implementation 'com.baomidou:mybatis-plus-jsqlparser'
|
|
|
|
|
|
// easyexcel
|
|
implementation 'com.alibaba:easyexcel:3.1.2'
|
|
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
processResources {
|
|
duplicatesStrategy = 'include'
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
resources {
|
|
//可以将java目录下的所有非.java资源打包到classes下
|
|
srcDir 'src/main/resources'
|
|
}
|
|
}
|
|
}
|