-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
init module #1
init module #1
Conversation
@@ -0,0 +1 @@ | |||
spring.application.name=module-core |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
core는 자체적으로 동작하는 모듈이 아니기 때문에 application설정이 필요 없을 것 같네요.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
네 core 모듈은 다른 모듈에서 필요로 하는 공통의 내용들이 들어있는 모듈로 자체적으로 동작하는 application은 아닙니다.
.gitignore
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
꼭 필요한 내용만 남기고 나머지는 다 지워볼까요?
settings.gradle
Outdated
@@ -0,0 +1,5 @@ | |||
rootProject.name = 'Family' | |||
|
|||
include 'module-stream' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
include 'module-stream' | |
include ':module-stream' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'module-stream' 과 ':module-stream' 의 차이점
은 : 의 역할에 있습니다. : 는 명시적으로 경로를 지정할때 사용됩니다. (따로 지정하지 않는다면 root 디렉토리에서 하위로 해당 이름을 가지는 모듈을 include 합니다.)
만약 /root-project/submodules/module-stream
경로에 있는 module을 include 하고 싶을 경우 ':submodules:module-stream' 과 같이 사용합니다.
build.gradle
Outdated
group = 'com' | ||
version = '0.0.1-SNAPSHOT' | ||
|
||
repositories { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
root project는 java project가 아니지 않나요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
네 맞습니다. 위와 동일한 이유로 삭제하겠습니다.
build.gradle
Outdated
@@ -0,0 +1,59 @@ | |||
plugins { | |||
id 'java' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
root project에는 필요없지 않을까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
네 root project는 소스코드를 가지고 있지 않아 필요하지 않습니다.
위 처럼 plugins 메서드에 java 를 입력하게 되면 java build 와 관련된 task (build, jar, test, clean, assemble 등) 들이 추가 됩니다. (소스코드가 없으므로 아무것도 빌드되지 않고 종료됩니다.) 이 경우 불필요한 로직들이 동작하게 되어 삭제하겠습니다.
build.gradle
Outdated
@@ -0,0 +1,59 @@ | |||
plugins { | |||
id 'java' | |||
id 'org.springframework.boot' version '3.2.8' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
root project는 스프링 부트 프로젝트가 아니지 않나요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
네 맞습니다. 위와 동일한 이유로 삭제하겠습니다.
- gitignore 에서 불필요한 내용 제거 - 제거 항목 netBeans, STS, VS Code, yml, properties
- root build.gradle: java, Springboot 내용 제거, subproject, allproject 메서드 제거 -> 각 모듈별로 설정 - core build.gradle: java 플러그인 적용 - api build.gradle: java, Springboot 플러그인 적용 - stream build.gradle: java, Springboot 플러그인 적용
프로젝트 세팅 구성
close #2