You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
1.9 KiB

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