Skip to content

Commit 801e52c

Browse files
authored
Merge pull request #20 from EntryDSM/feature/18-Dynamic-formula-calculation-function
Feature/18 dynamic formula calculation function
2 parents 8dc8f75 + 6ad6790 commit 801e52c

23 files changed

Lines changed: 2641 additions & 178 deletions

File tree

build-logic/build.gradle.kts

Lines changed: 0 additions & 11 deletions
This file was deleted.

build-logic/settings.gradle.kts

Lines changed: 0 additions & 17 deletions
This file was deleted.

build-logic/src/main/kotlin/io/casper/build/TestClass.kt

Lines changed: 0 additions & 15 deletions
This file was deleted.

build.gradle.kts

Lines changed: 16 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,31 @@
11
plugins {
2-
kotlin("jvm") version "1.9.23"
3-
id("org.jlleitschuh.gradle.ktlint").version("12.1.1")
4-
id("io.gitlab.arturbosch.detekt") version "1.23.6"
5-
id("casper.documentation-convention")
2+
kotlin(Plugins.KOTLIN_JVM) version PluginVersions.KOTLIN_VERSION
3+
id(Plugins.KTLINT) version(PluginVersions.KTLINT_VERSION)
4+
id(Plugins.CASPER_CONVENTION) version(Plugins.CASPER_CONVENTION)
5+
}
6+
7+
allprojects {
8+
group = Projects.GROUP
69
}
710

8-
// 서브프로젝트 설정
911
subprojects {
10-
// 서브프로젝트에 공통 설정 적용
12+
apply(plugin = Plugins.JETBRAINS_KOTLIN_JVM)
13+
1114
repositories {
1215
mavenCentral()
1316
}
14-
}
1517

16-
tasks.register("checkAll") {
17-
group = "verification"
18-
description = "모든 모듈(includeBuild 포함)에 대해 check 태스크를 실행합니다"
19-
20-
// 루트 프로젝트의 check 태스크에 의존
21-
dependsOn(tasks.named("check"))
22-
23-
// 모든 서브프로젝트의 check 태스크에 의존
24-
subprojects.forEach { subproject ->
25-
dependsOn(subproject.tasks.matching { it.name.startsWith("check") })
18+
kotlin {
19+
jvmToolchain(17)
2620
}
2721

28-
// build-logic, convention 등 includeBuild 모듈의 check 태스크에 의존
29-
dependsOn(gradle.includedBuilds.map { it.task(":check") })
30-
}
31-
32-
group = "hs.kr.entrydsm"
33-
version = "0.0.1-SNAPSHOT"
34-
35-
java {
36-
toolchain {
37-
languageVersion = JavaLanguageVersion.of(17)
22+
tasks.withType<Test> {
23+
useJUnitPlatform()
3824
}
3925
}
4026

41-
tasks.withType<Test> {
42-
useJUnitPlatform()
43-
}
44-
45-
detekt {
46-
config.setFrom(files("detekt.yml"))
47-
buildUponDefaultConfig = false // yml에서 설정한 룰만 허용
48-
parallel = true // 병렬 실행으로 성능 최적화
49-
}
50-
51-
tasks.withType<io.gitlab.arturbosch.detekt.Detekt>().configureEach {
52-
reports {
53-
xml.required.set(false)
54-
txt.required.set(false)
55-
}
27+
version = Projects.VERSION
5628

57-
jvmTarget = ("17") // Detekt가 사용하는 JVM 타겟을 Java 17로 지정
29+
kotlin {
30+
jvmToolchain(17)
5831
}

buildSrc/build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
plugins {
2+
`kotlin-dsl`
3+
}
4+
repositories {
5+
mavenCentral()
6+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
object Dependencies {
2+
//kotlin
3+
const val KOTLIN_REFLECT = "org.jetbrains.kotlin:kotlin-reflect"
4+
const val KOTLIN_TEST = "org.jetbrains.kotlin:kotlin-test"
5+
6+
//springframework
7+
const val SPRING_BOOT_STARTER = "org.springframework.boot:spring-boot-starter"
8+
const val SPRING_BOOT_STARTER_WEB = "org.springframework.boot:spring-boot-starter-web"
9+
const val SPRING_BOOT_STARTER_TEST = "org.springframework.boot:spring-boot-starter-test"
10+
const val SPRING_BOOT_STARTER_ACTUATOR = "org.springframework.boot:spring-boot-starter-actuator"
11+
12+
//jexl
13+
const val APACHE_COMMONS_JEXL = "org.apache.commons:commons-jexl3:${DependencyVersions.APACHE_COMMONS_JEXL_VERSION}"
14+
15+
//junit
16+
const val JUNIT = "org.jetbrains.kotlin:kotlin-test-junit5"
17+
const val JUNIT_PLATFORM_LAUNCHER = "org.junit.platform:junit-platform-launcher"
18+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
object DependencyVersions {
2+
// JEXL
3+
const val APACHE_COMMONS_JEXL_VERSION = "3.5.0"
4+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
object PluginVersions {
2+
const val KOTLIN_VERSION = "1.9.23"
3+
const val SPRING_BOOT_VERSION = "3.4.4"
4+
const val SPRING_DEPENDENCY_MANAGEMENT_VERSION = "1.1.7"
5+
const val KTLINT_VERSION = "12.1.1"
6+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
object Plugins {
2+
const val KOTLIN_JVM = "jvm"
3+
const val JETBRAINS_KOTLIN_JVM = "org.jetbrains.kotlin.jvm"
4+
const val KOTLIN_SPRING = "plugin.spring"
5+
const val SPRING_BOOT = "org.springframework.boot"
6+
const val SPRING_DEPENDENCY_MANAGEMENT = "io.spring.dependency-management"
7+
const val KTLINT = "org.jlleitschuh.gradle.ktlint"
8+
const val CASPER_CONVENTION = "casper.documentation-convention"
9+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
object Projects {
2+
const val GROUP = "hs.kr.entrydsm"
3+
const val VERSION = "0.0.1"
4+
const val APPLICATION_DOMAIN_VERSION = "0.0.1"
5+
const val APPLICATION_INFRASTRUCTURE_VERSION = "0.0.1"
6+
}
7+

0 commit comments

Comments
 (0)