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' // 权限认证
|
|
|
|
|
implementation 'com.alibaba:druid-spring-boot-starter:1.2.27' // 数据库连接池
|
|
|
|
|
implementation 'org.lionsoul:ip2region:2.7.0' // IP 归属地
|
|
|
|
|
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-11-12 09:26:35 +08:00
|
|
|
implementation 'com.aliyun.oss:aliyun-sdk-oss:3.15.1' // OSS SDK
|
2025-10-20 11:49:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tasks.named('test') {
|
|
|
|
|
useJUnitPlatform()
|
|
|
|
|
}
|