Skip to content

Commit e214867

Browse files
EmbeddedKafka Project init.
1 parent 409d533 commit e214867

File tree

13 files changed

+502
-0
lines changed

13 files changed

+502
-0
lines changed

embedded-kafka/.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/gradlew text eol=lf
2+
*.bat text eol=crlf
3+
*.jar binary

embedded-kafka/.gitignore

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
HELP.md
2+
.gradle
3+
build/
4+
!gradle/wrapper/gradle-wrapper.jar
5+
!**/src/main/**/build/
6+
!**/src/test/**/build/
7+
8+
### STS ###
9+
.apt_generated
10+
.classpath
11+
.factorypath
12+
.project
13+
.settings
14+
.springBeans
15+
.sts4-cache
16+
bin/
17+
!**/src/main/**/bin/
18+
!**/src/test/**/bin/
19+
20+
### IntelliJ IDEA ###
21+
.idea
22+
*.iws
23+
*.iml
24+
*.ipr
25+
out/
26+
!**/src/main/**/out/
27+
!**/src/test/**/out/
28+
29+
### NetBeans ###
30+
/nbproject/private/
31+
/nbbuild/
32+
/dist/
33+
/nbdist/
34+
/.nb-gradle/
35+
36+
### VS Code ###
37+
.vscode/

embedded-kafka/HELP.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Read Me First
2+
The following was discovered as part of building this project:
3+
4+
* The original package name 'com.example.embedded-kafka' is invalid and this project uses 'com.example.embedded_kafka' instead.
5+
6+
# Getting Started
7+
8+
### Reference Documentation
9+
For further reference, please consider the following sections:
10+
11+
* [Official Gradle documentation](https://docs.gradle.org)
12+
* [Spring Boot Gradle Plugin Reference Guide](https://docs.spring.io/spring-boot/3.4.0/gradle-plugin)
13+
* [Create an OCI image](https://docs.spring.io/spring-boot/3.4.0/gradle-plugin/packaging-oci-image.html)
14+
15+
### Additional Links
16+
These additional references should also help you:
17+
18+
* [Gradle Build Scans – insights for your project's build](https://scans.gradle.com#gradle)
19+

embedded-kafka/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Embedded Kafka
2+
Spring 프로젝트에서 임베디드 카프카를 활용하는 방법
3+
4+
## 의존성 추가
5+
```groovy
6+
implementation 'org.springframework.kafka:spring-kafka:3.3.0'
7+
testImplementation 'org.springframework.kafka:spring-kafka-test:3.3.0'
8+
```
9+
10+
## 카프카 설정 추가
11+
12+
13+
## 관련 코드 작성
14+
15+
16+
## 테스트 코드 작성
17+
18+
19+
20+
## 참고자료
21+
https://velog.io/@wodyd202/Embedded-Kafka%EB%A5%BC-%ED%86%B5%ED%95%9C-Kafka-%ED%85%8C%EC%8A%A4%ED%8A%B8

embedded-kafka/build.gradle

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
plugins {
2+
id 'java'
3+
id 'org.springframework.boot' version '3.4.0'
4+
id 'io.spring.dependency-management' version '1.1.6'
5+
}
6+
7+
group = 'com.example'
8+
version = '0.0.1-SNAPSHOT'
9+
10+
java {
11+
toolchain {
12+
languageVersion = JavaLanguageVersion.of(17)
13+
}
14+
}
15+
16+
configurations {
17+
compileOnly {
18+
extendsFrom annotationProcessor
19+
}
20+
}
21+
22+
repositories {
23+
mavenCentral()
24+
}
25+
26+
dependencies {
27+
// Default
28+
implementation 'org.springframework.boot:spring-boot-starter'
29+
compileOnly 'org.projectlombok:lombok'
30+
annotationProcessor 'org.projectlombok:lombok'
31+
testImplementation 'org.springframework.boot:spring-boot-starter-test'
32+
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
33+
34+
// Kafka
35+
implementation 'org.springframework.kafka:spring-kafka:3.3.0'
36+
testImplementation 'org.springframework.kafka:spring-kafka-test:3.3.0'
37+
}
38+
39+
tasks.named('test') {
40+
useJUnitPlatform()
41+
}
42.6 KB
Binary file not shown.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
6+
zipStoreBase=GRADLE_USER_HOME
7+
zipStorePath=wrapper/dists

embedded-kafka/gradlew

Lines changed: 252 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)