gradle 적용 (fixed)

This commit is contained in:
Hyojin Ahn 2026-06-08 10:59:58 -04:00
parent 0b1604cae6
commit 31717dd18a
1 changed files with 56 additions and 0 deletions

56
build.gradle Normal file
View File

@ -0,0 +1,56 @@
plugins {
id 'java'
id 'org.springframework.boot' version '3.1.4'
id 'io.spring.dependency-management' version '1.1.3'
}
group = 'com.goi'
version = '0.0.1-SNAPSHOT'
description = 'Human Capital Management REST Api'
java {
sourceCompatibility = '17'
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
// Required for the local 'template:layered-architecture-template' SNAPSHOT dependency
mavenLocal()
}
dependencies {
// Spring Boot starters
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-validation'
// API documentation
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.1.0'
// JWT
implementation 'io.jsonwebtoken:jjwt-api:0.11.5'
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.11.5'
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.11.5'
// Database driver
runtimeOnly 'org.postgresql:postgresql'
// Lombok
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
// Testing
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
}
tasks.named('test') {
useJUnitPlatform()
}