2025-08-08 13:26:09 +09:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
|
|
|
id 'org.springframework.boot' version '3.5.4'
|
|
|
|
id 'io.spring.dependency-management' version '1.1.7'
|
|
|
|
}
|
|
|
|
|
|
|
|
group = 'com.bio'
|
|
|
|
version = '0.0.1-SNAPSHOT'
|
|
|
|
|
|
|
|
java {
|
|
|
|
toolchain {
|
|
|
|
languageVersion = JavaLanguageVersion.of(17)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
configurations {
|
|
|
|
compileOnly {
|
|
|
|
extendsFrom annotationProcessor
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
developmentOnly 'org.springframework.boot:spring-boot-devtools'
|
|
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
2025-08-13 10:11:54 +09:00
|
|
|
// PostgreSQL JDBC
|
2025-08-08 13:26:09 +09:00
|
|
|
runtimeOnly 'org.postgresql:postgresql'
|
|
|
|
implementation 'org.springframework.boot:spring-boot-starter-web'
|
2025-08-11 11:31:02 +09:00
|
|
|
|
2025-08-13 10:11:54 +09:00
|
|
|
// Spring Securit
|
2025-08-11 11:31:02 +09:00
|
|
|
implementation 'org.springframework.boot:spring-boot-starter-security'
|
|
|
|
|
2025-08-13 10:11:54 +09:00
|
|
|
// Validation
|
2025-08-11 11:31:02 +09:00
|
|
|
implementation 'org.springframework.boot:spring-boot-starter-validation'
|
|
|
|
|
2025-08-13 10:11:54 +09:00
|
|
|
// MapStruct
|
2025-08-12 15:00:12 +09:00
|
|
|
implementation 'org.mapstruct:mapstruct:1.5.5.Final'
|
|
|
|
annotationProcessor 'org.mapstruct:mapstruct-processor:1.5.5.Final'
|
2025-08-11 11:31:02 +09:00
|
|
|
|
2025-08-13 10:11:54 +09:00
|
|
|
// MyBatis
|
2025-08-11 11:31:02 +09:00
|
|
|
implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:3.0.3'
|
2025-08-12 08:46:55 +09:00
|
|
|
|
|
|
|
// jwt
|
|
|
|
implementation 'io.jsonwebtoken:jjwt-api:0.12.5'
|
2025-08-13 10:11:54 +09:00
|
|
|
|
|
|
|
// lombok
|
2025-08-08 13:26:09 +09:00
|
|
|
compileOnly 'org.projectlombok:lombok'
|
|
|
|
annotationProcessor 'org.projectlombok:lombok'
|
2025-08-12 15:00:12 +09:00
|
|
|
annotationProcessor 'org.projectlombok:lombok-mapstruct-binding:0.2.0'
|
2025-08-08 13:26:09 +09:00
|
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
|
|
|
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
|
2025-08-11 09:20:35 +09:00
|
|
|
|
|
|
|
// querydsl
|
2025-08-13 10:11:54 +09:00
|
|
|
implementation 'io.github.openfeign.querydsl:querydsl-jpa:6.11'
|
|
|
|
annotationProcessor 'io.github.openfeign.querydsl:querydsl-apt:6.11:jpa'
|
|
|
|
annotationProcessor 'jakarta.annotation:jakarta.annotation-api'
|
|
|
|
annotationProcessor 'jakarta.persistence:jakarta.persistence-api'
|
|
|
|
|
2025-08-11 09:20:35 +09:00
|
|
|
// p6spy
|
|
|
|
implementation 'com.github.gavlyukovskiy:p6spy-spring-boot-starter:1.9.0'
|
2025-08-08 13:26:09 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.named('test') {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|
2025-08-11 09:20:35 +09:00
|
|
|
|
|
|
|
// querydsl
|
2025-08-13 10:11:54 +09:00
|
|
|
def querydslSrcDir = 'src/main/generated'
|
|
|
|
clean {
|
|
|
|
delete file(querydslSrcDir)
|
2025-08-11 09:20:35 +09:00
|
|
|
}
|
2025-08-13 10:11:54 +09:00
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
|
|
options.generatedSourceOutputDirectory = file(querydslSrcDir)
|
|
|
|
}
|