plugins { id 'java' id 'org.springframework.boot' version '3.4.0' apply false id 'io.spring.dependency-management' version '1.1.6' apply false } allprojects { group = 'com.ktds.hi' version = '1.0.0' repositories { mavenCentral() } } subprojects { apply plugin: 'java' apply plugin: 'org.springframework.boot' apply plugin: 'io.spring.dependency-management' java { sourceCompatibility = '21' } configurations { compileOnly { extendsFrom annotationProcessor } } // 공통 의존성 dependencies { // Lombok (모든 서브 프로젝트에서 사용) compileOnly 'org.projectlombok:lombok' annotationProcessor 'org.projectlombok:lombok' // 테스트 (모든 서브 프로젝트에서 사용) testImplementation 'org.springframework.boot:spring-boot-starter-test' testRuntimeOnly 'org.junit.platform:junit-platform-launcher' } // 컴파일 옵션 tasks.withType(JavaCompile) { options.encoding = 'UTF-8' options.compilerArgs += ['-parameters'] } // 테스트 설정 tasks.named('test') { useJUnitPlatform() systemProperty 'spring.profiles.active', 'test' } }