build.gradle(빌드 스크립트)

plugins {  // 
	id 'org.springframework.boot' version '2.4.5'
	id 'io.spring.dependency-management' version '1.0.11.RELEASE'
	id 'java'
}

// Java 프로젝트 정보
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'

// 의존성 Repository 경로
repositories {
	mavenCentral()
}

// 의존성 목록
// implementation vs compile : <https://bluayer.com/13>
// testImplementation :
dependencies {
	implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
	implementation 'org.springframework.boot:spring-boot-starter-security'
	implementation 'org.springframework.boot:spring-boot-starter-web'
	implementation 'org.flywaydb:flyway-core'
	testImplementation 'org.springframework.boot:spring-boot-starter-test'
	testImplementation 'org.springframework.security:spring-security-test'
}

// 테스트
test {
	useJUnitPlatform()
}

plugins

프로젝트 정보

repositories

Declaring repositories

dependencies

implementation

testImplementation

runtimeOnly

build.gradle에서 runtimeOnly 단어 - 인프런 | 질문 & 답변

Task 설정

sourceSets { }

tasks.withType(JavaCompile) { }

clean.doLast { }