Gradle 전체 설정


프로젝트 설정

plugins {
	id ‘org.springframework.boot’ version ‘2.2.1.RELEASE’
	id ‘io.spring.dependency-management’ version ‘1.0.8.RELEASE’
	id ‘java’
}

group = ‘study’
version = ‘0.0.1-SNAPSHOT’
sourceCompatibility = ‘1.8’

configurations {
	compileOnly {
	extendsFrom annotationProcessor
	}
}

repositories {
	mavenCentral()
}

dependencies {
	implementation ‘org.springframework.boot:spring-boot-starter-data-jpa’
	implementation ‘org.springframework.boot:spring-boot-starter-web’
	implementation ‘com.github.gavlyukovskiy:p6spy-spring-boot-starter:1.5.7’
	compileOnly ‘org.projectlombok:lombok’
	runtimeOnly ‘com.h2database:h2’
	annotationProcessor ‘org.projectlombok:lombok’
	testImplementation(‘org.springframework.boot:spring-boot-starter-test’) {
		exclude group: ‘org.junit.vintage’, module: ‘junit-vintage-engine’
	}
}

test {
	useJUnitPlatform()
}

스프링 부트 라이브러리 살펴보기

테스트 라이브러리

H2 데이터베이스 설치


개발이나 테스트 용도로 가볍고 편리한 DB, 웹 화면 제공