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.

69 lines
2.7 KiB

plugins {
id 'java'
id 'org.springframework.boot' version '3.3.8'
id 'io.spring.dependency-management' version '1.1.7'
}
group = 'com.qyft'
version = '0.0.1'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation group: 'ch.qos.logback', name: 'logback-core', version: '1.5.16'
implementation group: 'org.xerial', name: 'sqlite-jdbc', version: '3.48.0.0'
implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:3.0.4'
implementation group: 'org.freemarker', name: 'freemarker', version: '2.3.34'
implementation group: 'com.baomidou', name: 'mybatis-plus-boot-starter', version: '3.5.10.1'
implementation group: 'com.baomidou', name: 'mybatis-plus-jsqlparser', version: '3.5.10.1'
implementation group: 'com.baomidou', name: 'mybatis-plus-generator', version: '3.5.10.1'
implementation group: 'cn.hutool', name: 'hutool-all', version: '5.8.35'
implementation group: 'com.github.xiaoymin', name: 'knife4j-openapi3-jakarta-spring-boot-starter', version: '4.5.0'
implementation group: 'io.jsonwebtoken', name: 'jjwt-api', version: '0.12.6'
implementation 'org.springframework.boot:spring-boot-starter-aop'
runtimeOnly group: 'io.jsonwebtoken', name: 'jjwt-impl', version: '0.12.6'
runtimeOnly group: 'io.jsonwebtoken', name: 'jjwt-jackson', version: '0.12.6'
implementation group: 'com.alibaba', name: 'fastjson', version: '2.0.54'
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-websocket', version: '3.4.2'
implementation group: 'io.netty', name: 'netty-all', version: '4.1.118.Final'
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.3'
//++++++++项目级别的放到下面++++++++
//++++++++项目级别的放到上面++++++++
compileOnly 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter-test:3.0.4'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
// 使用JUnit平台运行器
tasks.withType(Test).configureEach {
useJUnitPlatform()
// 生成详细测试报告
reports {
junitXml.required = true // 生成XML格式报告(兼容工具解析)
html.required = true // 生成HTML报告
}
// 解决控制台日志中文乱码问题(Windows下常见)
systemProperty 'file.encoding', 'UTF-8'
}