RuntimeOnly 키워드 알아보기
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
runtimeOnly 'com.h2database:h2'
- JDBC는 애플리케이션 로직이므로 implementation, H2는 실행 환경이므로 runtimeOnly로 분리한다.
Select a result to preview
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
runtimeOnly 'com.h2database:h2'