buildscript { ext { springBootVersion = '2.4.13' } repositories { mavenCentral() } dependencies { classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}" classpath "io.spring.gradle:dependency-management-plugin:1.0.4.RELEASE" } } subprojects { group = 'com.its' version = '0.0.1' apply plugin: 'java' apply plugin: 'idea' apply plugin: 'org.springframework.boot' apply plugin: 'io.spring.dependency-management' sourceCompatibility = '1.8' targetCompatibility = '1.8' compileJava.options.encoding = 'UTF-8' repositories { mavenCentral() } // 하위 모듈에서 공통으로 사용하는 세팅 추가 dependencies { // compileOnly 'org.projectlombok:lombok' // annotationProcessor 'org.projectlombok:lombok' // testAnnotationProcessor 'org.projectlombok:lombok' // testImplementation 'org.projectlombok:lombok' implementation 'org.springframework.kafka:spring-kafka' // lombok 라이브러리 추가 시작 compileOnly 'org.projectlombok:lombok' annotationProcessor 'org.projectlombok:lombok' testCompileOnly 'org.projectlombok:lombok' testAnnotationProcessor 'org.projectlombok:lombok' // lombok 라이브러리 추가 끝 testImplementation('org.springframework.boot:spring-boot-starter-test') { exclude group: 'org.junit.vintage', module: 'junit-vintage-engine' } } test { useJUnitPlatform() } } project(':its-common') { bootJar.enabled = false jar.enabled = true dependencies { } } project(':its-spring') { bootJar.enabled = false jar.enabled = true dependencies { implementation 'org.springframework.boot:spring-boot-starter-web' testImplementation 'org.springframework.boot:spring-boot-starter-test' } } project(':its-network') { bootJar.enabled = false jar.enabled = true dependencies { implementation 'org.springframework.boot:spring-boot-starter-web' testImplementation 'org.springframework.boot:spring-boot-starter-test' } } project(':its-cluster') { bootJar.enabled = false jar.enabled = true dependencies { implementation 'org.springframework.boot:spring-boot-starter-web' testImplementation 'org.springframework.boot:spring-boot-starter-test' } }