이 글은 이동욱 님의 스프링 부트와 AWS로 혼자 구현하는 웹 서비스 책을 읽으며 정리한 글입니다.
spring.io가 아닌 Gradle 프로젝트로 생성 후 추가하는 방식으로 프로젝트를 생성함

//plugins
//Gradle5 부터 Plugin 사용 방법이 변경
//참고
//https://plugins.gradle.org/plugin/org.springframework.boot
plugins {
id 'org.springframework.boot' version '2.4.1' // RELEASE 삭제
id 'io.spring.dependency-management' version '1.0.10.RELEASE'
id 'java'
}
group 'com.jojoldu.book'
version '1.0.4-SNAPSHOT-'+new Date().format("yyyyMMddHHmmss")
sourceCompatibility = 1.8
repositories {
mavenCentral()
jcenter()
}
// for Junit 5
test {
useJUnitPlatform()
}
dependencies {
//(3)
/**
* gradle 6이후 compile, testCompile은 Soft Deprecate(중단) 됨
* 대신 implementation, testImplementation이 추가
* */
implementation('org.springframework.boot:spring-boot-starter-web')
implementation('org.springframework.boot:spring-boot-starter-mustache')
}