2023-08-03 01:52:48 +08:00
|
|
|
plugins {
|
|
|
|
java
|
|
|
|
id("org.springframework.boot") version "3.1.2"
|
|
|
|
id("io.spring.dependency-management") version "1.1.2"
|
|
|
|
id("org.graalvm.buildtools.native") version "0.9.23"
|
|
|
|
}
|
|
|
|
|
|
|
|
group = "cn.wzpmc"
|
|
|
|
version = "0.0.1-SNAPSHOT"
|
|
|
|
|
|
|
|
java {
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
}
|
|
|
|
|
|
|
|
configurations {
|
|
|
|
compileOnly {
|
|
|
|
extendsFrom(configurations.annotationProcessor.get())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation("org.springframework.boot:spring-boot-starter-actuator")
|
|
|
|
implementation("org.springframework.boot:spring-boot-starter-data-redis")
|
|
|
|
implementation("org.springframework.boot:spring-boot-starter-security")
|
2023-08-15 17:17:26 +08:00
|
|
|
implementation("org.springframework.boot:spring-boot-starter-web") {
|
|
|
|
exclude("org.springframework.boot", "spring-boot-starter-json")
|
|
|
|
}
|
2023-08-03 01:52:48 +08:00
|
|
|
implementation("org.springframework.boot:spring-boot-starter-websocket")
|
|
|
|
// https://mvnrepository.com/artifact/org.mybatis/mybatis
|
|
|
|
implementation("org.mybatis:mybatis:3.5.13")
|
|
|
|
implementation("com.baomidou:mybatis-plus-boot-starter:3.5.3.1") {
|
|
|
|
exclude("org.mybatis", "mybatis")
|
|
|
|
}
|
2023-08-15 17:17:26 +08:00
|
|
|
// https://mvnrepository.com/artifact/com.alibaba.fastjson2/fastjson2
|
|
|
|
implementation("com.alibaba.fastjson2:fastjson2:2.0.38")
|
|
|
|
// https://mvnrepository.com/artifact/com.alibaba.fastjson2/fastjson2-extension
|
|
|
|
implementation("com.alibaba.fastjson2:fastjson2-extension:2.0.38")
|
|
|
|
// https://mvnrepository.com/artifact/com.alibaba.fastjson2/fastjson2-extension-spring6
|
|
|
|
implementation("com.alibaba.fastjson2:fastjson2-extension-spring6:2.0.38")
|
|
|
|
// https://mvnrepository.com/artifact/org.springdoc/springdoc-openapi-starter-webmvc-ui
|
|
|
|
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.1.0")
|
2023-08-03 01:52:48 +08:00
|
|
|
compileOnly("org.projectlombok:lombok")
|
|
|
|
developmentOnly("org.springframework.boot:spring-boot-devtools")
|
|
|
|
runtimeOnly("com.mysql:mysql-connector-j")
|
|
|
|
annotationProcessor("org.projectlombok:lombok")
|
|
|
|
testImplementation("org.springframework.boot:spring-boot-starter-test")
|
|
|
|
testImplementation("org.springframework.security:spring-security-test")
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType<Test> {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|
|
|
|
tasks.withType<JavaCompile> {
|
|
|
|
options.encoding = "UTF-8"
|
|
|
|
}
|