๐ŸŒฑ ํ”„๋กœ์ ํŠธ ํ™˜๊ฒฝ์„ค์ •

ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ

์ฃผ์˜! - ์Šคํ”„๋ง ๋ถ€ํŠธ 3.0์„ ์„ ํƒํ•˜๊ฒŒ ๋˜๋ฉด ๋‹ค์Œ ๋ถ€๋ถ„์„ ๊ผญ ํ™•์ธํ•ด์•ผํ•œ๋‹ค.

  1. Java 17 ์ด์ƒ์„ ์‚ฌ์šฉํ•ด์•ผ ํ•œ๋‹ค.
  2. javax ํŒจํ‚ค์ง€ ์ด๋ฆ„์„ jakarta๋กœ ๋ณ€๊ฒฝํ•ด์•ผ ํ•œ๋‹ค.
  3. H2 ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค๋ฅผ 2.1.214 ๋ฒ„์ „ ์ด์ƒ ์‚ฌ์šฉํ•ด์•ผ ํ•œ๋‹ค.

build.gradle Gradle ์ „์ฒด ์„ค์ •

plugins {
    id 'java'
    id 'org.springframework.boot' version '3.0.1'
    id 'io.spring.dependency-management' version '1.1.0'
}

group = 'jpabook'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'

configurations {
    compileOnly {
        extendsFrom annotationProcessor
    }
}

repositories {
    mavenCentral()
}

dependencies {
    implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
    implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
    implementation 'org.springframework.boot:spring-boot-starter-web'
    implementation 'org.springframework.boot:spring-boot-devtools'
    implementation 'com.github.gavlyukovskiy:p6spy-spring-boot-starter:1.8.1'
    compileOnly 'org.projectlombok:lombok'
    runtimeOnly 'com.h2database:h2'
    annotationProcessor 'org.projectlombok:lombok'
    testImplementation 'org.springframework.boot:spring-boot-starter-test'
    testImplementation 'junit:junit:4.13.1'
}

tasks.named('test') {
    useJUnitPlatform()
}

ํ•„๋…! ์ฃผ์˜!