Skip to content

Commit a4095e6

Browse files
authored
Merge pull request #15 from EntryDSM/feature/8-layerd-to-hexagonal-notice-attach-file
Feature/8 layerd to hexagonal [AttachFile, Notice]
2 parents 08e41b9 + 10bdfd0 commit a4095e6

61 files changed

Lines changed: 1588 additions & 69 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.editorconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_style = space
7+
indent_size = 4
8+
insert_final_newline = true
9+
max_line_length = 120
10+
tab_width = 4
11+
ktlint_disabled_rules = no-wildcard-imports,import-ordering,comment-spacing

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: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plugins {
77
kotlin("plugin.spring") version "1.9.23"
88
id("org.springframework.boot") version "3.4.4"
99
id("io.spring.dependency-management") version "1.1.7"
10-
id("org.jlleitschuh.gradle.ktlint").version("12.1.1")
10+
id("org.jlleitschuh.gradle.ktlint").version("11.5.1")
1111
id("io.gitlab.arturbosch.detekt") version "1.23.6"
1212
id("casper.documentation-convention")
1313
}
@@ -40,7 +40,6 @@ group = "hs.kr.entrydsm"
4040
version = "0.0.1-SNAPSHOT"
4141

4242
dependencies {
43-
4443
implementation("org.springframework.boot:spring-boot-starter")
4544
implementation("org.jetbrains.kotlin:kotlin-reflect")
4645
testImplementation("org.springframework.boot:spring-boot-starter-test")
@@ -76,3 +75,7 @@ tasks.withType<io.gitlab.arturbosch.detekt.Detekt>().configureEach {
7675

7776
jvmTarget = ("17") // Detekt가 사용하는 JVM 타겟을 Java 17로 지정
7877
}
78+
79+
tasks.withType<org.springframework.boot.gradle.tasks.bundling.BootJar> {
80+
mainClass.set("hs.kr.entrydsm.feed.CasperFeedApplication")
81+
}

buildSrc/build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
plugins {
2+
`kotlin-dsl`
3+
}
4+
5+
repositories {
6+
mavenCentral()
7+
}
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
object Dependencies {
2+
// Spring Boot
3+
const val SPRING_BOOT_STARTER = "org.springframework.boot:spring-boot-starter"
4+
const val SPRING_BOOT_STARTER_WEB = "org.springframework.boot:spring-boot-starter-web"
5+
const val SPRING_BOOT_STARTER_DATA_JPA = "org.springframework.boot:spring-boot-starter-data-jpa"
6+
const val SPRING_BOOT_STARTER_DATA_REDIS = "org.springframework.boot:spring-boot-starter-data-redis"
7+
const val SPRING_BOOT_STARTER_SECURITY = "org.springframework.boot:spring-boot-starter-security"
8+
const val SPRING_BOOT_STARTER_VALIDATION = "org.springframework.boot:spring-boot-starter-validation"
9+
const val SPRING_BOOT_STARTER_TEST = "org.springframework.boot:spring-boot-starter-test"
10+
11+
// Kotlin
12+
const val KOTLIN_REFLECT = "org.jetbrains.kotlin:kotlin-reflect"
13+
const val KOTLIN_TEST_JUNIT5 = "org.jetbrains.kotlin:kotlin-test-junit5"
14+
15+
// Database
16+
const val MYSQL_CONNECTOR = "com.mysql:mysql-connector-j"
17+
18+
// JSON
19+
const val JACKSON_MODULE_KOTLIN = "com.fasterxml.jackson.module:jackson-module-kotlin"
20+
const val ORG_JSON = "org.json:json:${DependencyVersion.ORG_JSON}"
21+
22+
// JWT
23+
const val JWT_API = "io.jsonwebtoken:jjwt-api:${DependencyVersion.JWT}"
24+
const val JWT_IMPL = "io.jsonwebtoken:jjwt-impl:${DependencyVersion.JWT}"
25+
const val JWT_JACKSON = "io.jsonwebtoken:jjwt-jackson:${DependencyVersion.JWT}"
26+
27+
// MapStruct
28+
const val MAPSTRUCT = "org.mapstruct:mapstruct:${DependencyVersion.MAPSTRUCT}"
29+
const val MAPSTRUCT_PROCESSOR = "org.mapstruct:mapstruct-processor:${DependencyVersion.MAPSTRUCT}"
30+
31+
// Test
32+
const val JUNIT_PLATFORM_LAUNCHER = "org.junit.platform:junit-platform-launcher"
33+
34+
// gRPC
35+
const val GRPC_NETTY_SHADED = "io.grpc:grpc-netty-shaded:${DependencyVersion.GRPC}"
36+
const val GRPC_PROTOBUF = "io.grpc:grpc-protobuf:${DependencyVersion.GRPC}"
37+
const val GRPC_STUB = "io.grpc:grpc-stub:${DependencyVersion.GRPC}"
38+
const val GRPC_KOTLIN_STUB = "io.grpc:grpc-kotlin-stub:${DependencyVersion.GRPC_KOTLIN}"
39+
const val PROTOBUF_KOTLIN = "com.google.protobuf:protobuf-kotlin:${DependencyVersion.PROTOBUF}"
40+
const val GRPC_TESTING = "io.grpc:grpc-testing:${DependencyVersion.GRPC}"
41+
42+
43+
// swagger
44+
const val SWAGGER = "org.springdoc:springdoc-openapi-starter-webmvc-ui:${DependencyVersion.SWAGGER_VERSION}"
45+
46+
// AWS
47+
const val AWS = "com.amazonaws:aws-java-sdk-s3:${DependencyVersion.AWS}"
48+
49+
// open feign
50+
const val OPEN_FEIGN = "org.springframework.cloud:spring-cloud-starter-openfeign:${DependencyVersion.OPEN_FEIGN_VERSION}"
51+
52+
// Kafka
53+
const val KAFKA = "org.springframework.kafka:spring-kafka"
54+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
object DependencyVersion {
2+
const val KOTLIN = "1.9.25"
3+
const val SPRING_BOOT = "3.4.4"
4+
const val SPRING_DEPENDENCY_MANAGEMENT = "1.1.7"
5+
const val DETEKT = "1.23.6"
6+
const val KTLINT = "12.1.1"
7+
8+
const val JWT = "0.11.5"
9+
const val ORG_JSON = "20230227"
10+
const val MAPSTRUCT = "1.6.0"
11+
12+
const val GRPC = "1.61.1"
13+
const val GRPC_KOTLIN = "1.4.1"
14+
const val PROTOBUF = "3.25.3"
15+
16+
const val SWAGGER_VERSION = "2.5.0"
17+
const val AWS = "1.12.281"
18+
19+
const val OPEN_FEIGN_VERSION = "3.1.4"
20+
}

buildSrc/src/main/kotlin/Plugin.kt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
object Plugin {
2+
const val KOTLIN_JVM = "org.jetbrains.kotlin.jvm"
3+
const val KOTLIN_SPRING = "org.jetbrains.kotlin.plugin.spring"
4+
const val KOTLIN_KAPT = "org.jetbrains.kotlin.kapt"
5+
const val SPRING_BOOT = "org.springframework.boot"
6+
const val SPRING_DEPENDENCY_MANAGEMENT = "io.spring.dependency-management"
7+
const val DETEKT = "io.gitlab.arturbosch.detekt"
8+
const val KTLINT = "org.jlleitschuh.gradle.ktlint"
9+
const val CASPER_DOCUMENTATION = "casper.documentation-convention"
10+
const val PROTOBUF = "com.google.protobuf"
11+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
object PluginVersion {
2+
const val KOTLIN_VERSION = "1.9.25"
3+
const val SPRING_BOOT_VERSION = "3.4.4"
4+
const val SPRING_DEPENDENCY_MANAGEMENT_VERSION = "1.1.7"
5+
const val DETEKT_VERSION = "1.23.6"
6+
const val KTLINT_VERSION = "12.1.1"
7+
const val PROTOBUF_VERSION = "0.9.4"
8+
}

0 commit comments

Comments
 (0)