Skip to content

Commit

Permalink
#1 프로젝트 생성 및 멀티모듈 생성
Browse files Browse the repository at this point in the history
  • Loading branch information
kyubeomHan committed Aug 16, 2024
1 parent 94ffdbb commit 49e451d
Show file tree
Hide file tree
Showing 15 changed files with 541 additions and 19 deletions.
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
## 이슈 유형
- [ ] 버그 리포트
- [ ] 기능 개발
- [ ] 설정
- [ ] 질문

## 설명
(이슈에 대해 자세히 설명해주세요.)

## 현재 동작 (버그인 경우)
(현재 어떻게 동작하고 있는지 설명해주세요.)

## 예상 동작 (버그 또는 기능 요청인 경우)
(어떻게 동작해야 하는지 설명해주세요.)

## 재현 단계 (버그인 경우)
1.
2.
3.
4.

## 스크린샷
(가능하다면 관련 스크린샷을 첨부해주세요.)

## 환경 (버그인 경우)
- OS: [예: iOS, Android, Windows]
- 브라우저 [예: chrome, safari]
- 버전 [예: 22]

## 추가 정보
(추가로 알려주실 내용이 있다면 여기에 적어주세요.)
27 changes: 27 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## PR 설명
(이 PR의 목적과 변경 사항을 간단히 설명해주세요.)

## 관련 이슈
(관련된 이슈 번호를 적어주세요. 예: #123)

## 변경 유형
- [ ] 버그 수정
- [ ] 새로운 기능
- [ ] 코드 스타일 업데이트 (포맷팅, 변수명 등)
- [ ] 리팩토링 (기능적 변경 없음)
- [ ] 문서 내용 변경
- [ ] 기타 (설명해주세요):

## 체크리스트
- [ ] 코드 컨벤션을 준수했습니다.
- [ ] 변경사항에 대한 테스트를 추가/수정했습니다.
- [ ] 관련 문서를 추가/수정했습니다.

## 테스트
(어떤 테스트를 수행했는지 설명해주세요. 예: 단위 테스트, 통합 테스트 등)

## 스크린샷 (UI 변경이 있는 경우)
(UI 변경이 있다면 변경 전/후 스크린샷을 첨부해주세요.)

## 추가 정보
(리뷰어가 알아야 할 추가 정보가 있다면 여기에 적어주세요.)
54 changes: 35 additions & 19 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,24 +1,40 @@
# Compiled class file
*.class
HELP.md
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/

# Log file
*.log
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/

# BlueJ files
*.ctxt
### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
out/
!**/src/main/**/out/
!**/src/test/**/out/

# Mobile Tools for Java (J2ME)
.mtj.tmp/
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/

# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
### VS Code ###
.vscode/

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
replay_pid*
### Kotlin ###
.kotlin
8 changes: 8 additions & 0 deletions admin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
plugins {
idea
}


dependencies {

}
11 changes: 11 additions & 0 deletions admin/src/main/kotlin/com/admin/AdminApplication.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.myongsik

import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication

@SpringBootApplication
class AdminApplication

fun main(args: Array<String>) {
runApplication<AdminApplication>(*args)
}
2 changes: 2 additions & 0 deletions admin/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
server:
port: 8081
52 changes: 52 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
kotlin("jvm") version "1.9.24"
kotlin("plugin.spring") version "1.9.24"
kotlin("plugin.jpa") version "1.9.24"
id("org.springframework.boot") version "3.3.2"
id("io.spring.dependency-management") version "1.1.6"
}

allprojects {
group = "com"
version = "0.0.1-SNAPSHOT"

repositories {
mavenCentral()
}
tasks.withType<JavaCompile>{
sourceCompatibility = "21"
targetCompatibility = "21"
}

tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "21"
}
}

tasks.withType<Test> {
useJUnitPlatform()
}
}
subprojects{
apply(plugin = "org.springframework.boot")
apply(plugin = "io.spring.dependency-management")
apply(plugin = "org.jetbrains.kotlin.plugin.spring")
apply(plugin = "kotlin")
apply(plugin = "kotlin-kapt")

dependencies {
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("org.jetbrains.kotlin:kotlin-reflect")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit5")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}

}


8 changes: 8 additions & 0 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
plugins {
idea
}


dependencies {

}
11 changes: 11 additions & 0 deletions core/src/main/kotlin/com/core/CoreApplication.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.core

import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication

@SpringBootApplication
class CoreApplication

fun main(args: Array<String>) {
runApplication<CoreApplication>(*args)
}
2 changes: 2 additions & 0 deletions core/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
server:
port: 8080
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
7 changes: 7 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 49e451d

Please sign in to comment.