buildscript { ext { spring = '3.2.1' boot = 'org.springframework.boot' lombok = 'org.projectlombok:lombok' } repositories { mavenCentral() } dependencies { classpath("$boot:spring-boot-gradle-plugin:$spring") } } allprojects { group = "kr.co.palnet" version = "1.0.0" } subprojects { apply plugin: "java" apply plugin: boot apply plugin: "io.spring.dependency-management" apply plugin: "idea" repositories { mavenCentral() } configurations { developmentOnly runtimeClasspath { extendsFrom developmentOnly } compileOnly { extendsFrom annotationProcessor } } dependencies { developmentOnly("$boot:spring-boot-devtools") implementation 'com.fasterxml.jackson.core:jackson-annotations:2.15.3' compileOnly lombok testCompileOnly lombok annotationProcessor lombok testAnnotationProcessor lombok testImplementation "$boot:spring-boot-starter-test" } test { useJUnitPlatform() } } ["data", "web", "common"].each { def subProjectDir = new File(projectDir, it) subProjectDir.eachDir {dir-> def projectName = ":${it}-${dir.name}" project(projectName){ bootJar.enabled(false) jar.enabled(true) } } } ["app"].each { def subProjectDir = new File(projectDir, it) subProjectDir.eachDir {dir-> def projectName = ":${it}-${dir.name}" project(projectName){ } } } help.enabled(false)