46 lines
1.1 KiB
Groovy
46 lines
1.1 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'org.springframework.boot' version '4.1.1'
|
|
id 'io.spring.dependency-management' version '1.1.7'
|
|
}
|
|
|
|
group = 'com.study'
|
|
version = '0.0.1-SNAPSHOT'
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(21)
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
//Web
|
|
implementation 'org.springframework.boot:spring-boot-starter-web'
|
|
//JPA
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
|
//PostgreSQL
|
|
runtimeOnly 'org.postgresql:postgresql'
|
|
//Lombok
|
|
compileOnly 'org.projectlombok:lombok'
|
|
annotationProcessor 'org.projectlombok:lombok'
|
|
//Swagger
|
|
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.8.9'
|
|
//Validation
|
|
implementation 'org.springframework.boot:spring-boot-starter-validation'
|
|
//Jackson
|
|
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310'
|
|
//H2
|
|
runtimeOnly 'com.h2database:h2'
|
|
runtimeOnly 'org.springframework.boot:spring-boot-h2console'
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
|
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
|
|
}
|
|
|
|
tasks.named('test') {
|
|
useJUnitPlatform()
|
|
}
|