Files
core_wing_web/build.gradle

61 lines
3.0 KiB
Groovy
Raw Normal View History

2025-10-20 11:49:51 +08:00
plugins {
id 'org.springframework.boot' version '2.6.13'
id 'io.spring.dependency-management' version '1.0.15.RELEASE'
id 'java'
}
group = 'com.corewing'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
2025-10-20 15:19:18 +08:00
dependencyManagement {
imports {
mavenBom "com.baomidou:mybatis-plus-bom:3.5.14"
}
}
2025-10-20 11:49:51 +08:00
dependencies {
2025-10-21 11:35:57 +08:00
implementation 'org.springframework.boot:spring-boot-starter-data-jdbc' // Spring Data JDBC
implementation 'org.springframework.boot:spring-boot-starter-data-redis' // Redis 缓存
implementation 'org.springframework.boot:spring-boot-starter-jdbc' // JDBC 支持
implementation 'org.springframework.boot:spring-boot-starter-web' // Web MVC
implementation 'org.springframework.boot:spring-boot-starter-validation' // 参数校验
implementation 'org.springframework.boot:spring-boot-starter-mail' // 邮件发送
implementation 'com.baomidou:mybatis-plus-boot-starter' // MyBatis Plus
implementation 'com.baomidou:mybatis-plus-generator' // 代码生成器
implementation("com.baomidou:mybatis-plus-jsqlparser") // SQL 解析器
implementation 'cn.dev33:sa-token-spring-boot-starter:1.44.0' // 权限认证
2025-12-22 18:35:58 +08:00
implementation 'cn.dev33:sa-token-redis-template:1.44.0' // Sa-Token 整合 RedisTemplate
implementation 'org.apache.commons:commons-pool2' // 提供 Redis 连接池
2025-10-21 11:35:57 +08:00
implementation 'com.alibaba:druid-spring-boot-starter:1.2.27' // 数据库连接池
implementation 'org.lionsoul:ip2region:2.7.0' // IP 归属地
2026-01-08 16:26:17 +08:00
// implementation 'org.springframework.boot:spring-boot-starter-data-mongodb' // mongodb
2025-10-21 11:35:57 +08:00
compileOnly 'org.projectlombok:lombok' // Lombok
developmentOnly 'org.springframework.boot:spring-boot-devtools' // 热重载
runtimeOnly 'com.mysql:mysql-connector-j' // MySQL 驱动
annotationProcessor 'org.projectlombok:lombok' // Lombok 注解处理
testImplementation 'org.springframework.boot:spring-boot-starter-test' // 测试框架
2025-10-30 09:31:24 +08:00
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' // thymeleaf模版引擎
2025-12-22 18:35:58 +08:00
implementation 'com.aliyun.oss:aliyun-sdk-oss:3.18.3' // OSS SDK
implementation 'cn.hutool:hutool-all:5.8.42' // hutool工具包
2025-12-22 18:35:58 +08:00
implementation 'io.springfox:springfox-swagger2:2.10.5'
implementation 'com.github.xiaoymin:knife4j-openapi2-spring-boot-starter:4.4.0'
implementation 'org.lionsoul:ip2region:2.7.0'
implementation 'jakarta.servlet:jakarta.servlet-api:5.0.0'
2025-12-22 18:35:58 +08:00
2025-10-20 11:49:51 +08:00
}
tasks.named('test') {
useJUnitPlatform()
}