Skip to content
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

๐Ÿ“ gradle ๋ฉ€ํ‹ฐ ๋ชจ๋“ˆ vs spring modulith #16

Open
jaeyeong951 opened this issue Jan 12, 2025 · 0 comments
Open
Assignees
Labels
log ํšŒ์˜, ์ง€์‹, ๊ทธ ์™ธ์˜ ๋ชจ๋“  ๋ฌธ์„œ

Comments

@jaeyeong951
Copy link
Collaborator

jaeyeong951 commented Jan 12, 2025

๐Ÿ“Œ ์˜๋ฌธ

๋ชจ๋“ˆ์„ ๋‚˜๋ˆˆ๋‹ค๋Š” ๊ด€์ ์—์„œ ๋ณด๋ฉด ์ด์ „๋ถ€ํ„ฐ ๊ทธ๋žฌ๋˜ ๊ฒƒ ์ฒ˜๋Ÿผ gradle ๊ธฐ๋ฐ˜์œผ๋กœ ๋ฉ€ํ‹ฐ ๋ชจ๋“ˆ์„ ๊ตฌ์„ฑํ•ด๋„ ์ถฉ๋ถ„ํ•  ๊ฒƒ ๊ฐ™์€๋ฐ ์™œ spring modulith ๋ฅผ ์“ฐ๋Š”๊ฐ€?

๐Ÿค” ๋น„๊ต

1. gradle ๊ธฐ๋ฐ˜ ๋ฉ€ํ‹ฐ ๋ชจ๋“ˆํ™”

  • ๊ฐ ๋ชจ๋“ˆ์ด ๋ณ„๋„์˜ ํ”„๋กœ์ ํŠธ์ž„
  • ๋ชจ๋“ˆ๋ณ„๋กœ ๋ณ„๋„์˜ build.gradle์„ ๋‘์–ด ์˜์กด์„ฑ๊ณผ ๋นŒ๋“œ ์„ค์ •์„ ๋ฌผ๋ฆฌ์ ์œผ๋กœ ๋ถ„๋ฆฌํ•˜์—ฌ ๊ด€๋ฆฌ
    • ๊ทธ๋ž˜์„œ ๊ฐ ๋ชจ๋“ˆ์€ ๋ณดํ†ต ๋…๋ฆฝ๋œ JAR๋กœ ์ƒ์„ฑ๋จ
  • ์• ์ดˆ์— ๋ฌผ๋ฆฌ์ ์œผ๋กœ ๊ตฌ๋ถ„ํ–ˆ๊ธฐ ๋•Œ๋ฌธ์— ๋ชจ๋“ˆ์„ ๋ฃจํŠธ ํ”„๋กœ์ ํŠธ์—์„œ ์ดํƒˆ์‹œํ‚ค๊ธฐ ์‰ฌ์›€
  • ๋‹ค๋งŒ, ๋ฌผ๋ฆฌ์ ์œผ๋กœ ๋…๋ฆฝ๋œ ํ”„๋กœ์ ํŠธ๊ฐ€ ์—ฌ๋Ÿฌ๊ฐœ ์ƒ๊ธฐ๋Š” ๋งŒํผ ๋ณต์žก๋„๊ฐ€ ์ƒ๋Œ€์ ์œผ๋กœ ์ฆ๊ฐ€
    • gradle ์˜์กด์„ฑ ๊ด€๋ฆฌ๋Š” ๊ทธ ๊ฐฏ์ˆ˜๊ฐ€ ํ•œ๊ฐœ ํ•œ๊ฐœ ๋Š˜์–ด๋‚  ๋•Œ๋งˆ๋‹ค ๊ด€๋ฆฌ ๋น„์šฉ์ด ๋ฐฐ๋กœ ๋Š˜์–ด๋‚จ
  • ๋ชจ๋“ˆ์ด ๋Š˜์–ด๋‚˜๊ณ  ๋ชจ๋“ˆ๊ฐ„ ์˜์กด์„ฑ์ด ๋ณต์žกํ•ด์งˆ ๊ฒฝ์šฐ ์ด๋ฅผ ์ถ”์ ํ•˜๋Š” ๊ฒƒ๋„ ์–ด๋ ค์›€
  • ๋ชจ๋“ˆ ๋ถ„๋ฆฌ์˜ ๊ธฐ์ค€์ด ์• ๋งคํ•ด์ง€๋Š” ์ˆœ๊ฐ„์ด ์˜ด
    • ๋ฌผ๋ฆฌ์ ์ธ ๋ถ„๋ฆฌ์ด๋‹ค๋ณด๋‹ˆ ๋ชจ๋“ˆ์„ ๋ถ„๋ฆฌํ•˜๋Š” ๊ฒƒ ์ž์ฒด๊ฐ€ ๋ถ€๋‹ด์ด๊ณ  "์ด๊ฒƒ๋„ ๋ชจ๋“ˆ๋กœ ๋นผ์•ผํ•ด? ๊ทผ๋ฐ ์•ˆ๋นผ๊ธฐ๋„ ์• ๋งคํ•จ" ๊ฐ™์€ ๊ฒฝ์šฐ๊ฐ€ ์ƒ๊น€

2. spring modulith

  • ๊ฐ ๋ชจ๋“ˆ์€ ๋…ผ๋ฆฌ์ ์œผ๋กœ ๊ตฌ๋ถ„๋จ (๋‹จ์ˆœ ํŒจํ‚ค์ง€ ๋‹จ์œ„ ๊ตฌ๋ถ„)
  • ๋ณ„๋„ ์„œ๋ธŒํ”„๋กœ์ ํŠธ ํ˜•ํƒœ๊ฐ€ ์•„๋‹ˆ๋ฏ€๋กœ, ๋นŒ๋“œ ๊ด€์ ์—์„œ๋Š” ์—ฌ์ „ํžˆ โ€œํ•˜๋‚˜์˜ ํ”„๋กœ์ ํŠธโ€
  • modulith ๊ฐ€ ์ œ๊ณตํ•˜๋Š” ๋ถ€๊ฐ€์ ์ธ ๊ธฐ๋Šฅ์„ ํ†ตํ•ด ๋ชจ๋“ˆ ๊ฐ„ ์˜์กด์„ฑ์„ ํ†ต์ œ
  • ์˜์กด์„ฑ ๊ด€๋ฆฌ๊ฐ€ ์ˆ˜์›”ํ•จ (๋ช…ํ™•ํ•œ ํ†ต์ œ + ํ…Œ์ŠคํŠธ + ์‹œ๊ฐํ™”)
    • ์˜์กด์„ฑ์ด ํ•œ๋ˆˆ์— ๋ณด์ธ๋‹ค๋ฉด ์ƒˆ๋กœ์šด ๊ฐœ๋ฐœ์ž๊ฐ€ ํ•ฉ๋ฅ˜ํ•ด์„œ ์ฝ”๋“œ๋ฒ ์ด์Šค์— ์ ์‘ํ•˜๋Š” ์‹œ๊ฐ„๋„ ๋งŽ์ด ์ค„์–ด๋“ค๋“ฏ?
  • ํ•˜๋‚˜์˜ ๋ชจ๋†€๋ฆฌ์‹ ํ”„๋กœ์ ํŠธ์ž„์—๋„ ๋ถˆ๊ตฌํ•˜๊ณ  ๋‚ด๋ถ€์—์„œ ์•„ํ‚คํ…์ฒ˜๊ฐ€ ์„œ์„œํžˆ ๋ฌด๋„ˆ์ง€๋Š” ํ˜„์ƒ์„ ๋ฐฉ์ง€ํ•  ์ˆ˜ ์žˆ์Œ
  • ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์ด ์ปค์งˆ ๊ฒฝ์šฐ ๋นŒ๋“œ/๋ฐฐํฌ ์„ฑ๋Šฅ ๋ฌธ์ œ๋กœ ์ธํ•ด ๊ฒฐ๊ตญ ๋ช‡๋ช‡ ๋ชจ๋“ˆ์€ ๋ฌผ๋ฆฌ์ ์œผ๋กœ ๋ถ„๋ฆฌ๋˜์–ด์•ผ ํ•จ
    • ํ•˜์ง€๋งŒ modulith ๋ฅผ ์ ๊ทน ํ™œ์šฉํ•˜์—ฌ ๋ชจ๋“ˆํ™”๋ฅผ ์ž˜ ํ•ด๋†“์•˜๋‹ค๋ฉด ๋ฌผ๋ฆฌ์  ๋ถ„๋ฆฌ๋Š” ์ž์—ฐ์Šค๋Ÿฝ๊ฒŒ ๊ฐ€๋Šฅ (์ ์ง„์  ๋ถ„๋ฆฌ๊ฐ€ ๊ฐ„ํŽธ)

์–ธ์ œ ๋ญ˜ ์“ธ๊นŒ?

  • ํฐ ์กฐ์ง์—์„œ ๋ชจ๋“ˆ๋ณ„๋กœ ๋…๋ฆฝ์ ์ธ ๊ฐœ๋ฐœ์„ ํ•˜๊ณ  ๋ฐฐํฌ ์ฃผ๊ธฐ๋„ ๋‹ค๋ฅด๋‹ค.
  • ๋„๋ฉ”์ธ ๊ฒฝ๊ณ„๊ฐ€ ์•„์ฃผ ๋ช…ํ™•ํ•˜๊ณ  ์–ธ์  ๊ฐ€ ๋ฐ˜๋“œ์‹œ ๋ถ„๋ฆฌํ• ๊ฑฐ๋‹ค.

โ†’ ์• ์ดˆ์— ๋ชจ๋“ˆ ๋นผ๋Š”๊ฒŒ ๋‚ซ๋‹ค.

  • ์กฐ์ง์˜ ๊ทœ๋ชจ๊ฐ€ ํฌ์ง€ ์•Š๊ณ  ํ•œ ๋ฉ์–ด๋ฆฌ๋กœ ๋ฐฐํฌ๋˜์–ด๋„ ์ƒ๊ด€ ์—†๋‹ค.
  • ๋„๋ฉ”์ธ์ด ์–ด๋–ป๊ฒŒ ๋‚˜๋ˆ ์งˆ์ง€ ์•„์ง ๋ถˆ๋ช…ํ™•ํ•˜๋‹ค.
  • ๊ทผ๋ฐ ์•„ํ‚คํ…์ฒ˜ ์ •๋ฆฌ๋Š” ์ž˜ ๋˜์—ˆ์œผ๋ฉด ์ข‹๊ฒ ๋‹ค.

โ†’ spring modulith ์“ฐ๋ฉด ์ข‹๋‹ค.

๐Ÿ’ก ์ •๋ฆฌ

โ€œ๊ธฐ์ˆ ์ ์œผ๋กœ(๋นŒ๋“œยทCIยท๋ฐฐํฌ ๊ด€์ ) ๋ชจ๋“ˆ์„ ๋‚˜๋ˆŒ ๊ฒƒ์ธ๊ฐ€?โ€ โ†’ Gradle ๋ฉ€ํ‹ฐ ๋ชจ๋“ˆ
โ€œํ•˜๋‚˜์˜ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ์•ˆ์—์„œ ๋„๋ฉ”์ธ ๊ฒฝ๊ณ„๋ฅผ ์žก๊ณ , ๋ชจ๋“ˆ ๊ฐ„ ์˜์กด์„ฑ์„ ๊ด€๋ฆฌํ•  ๊ฒƒ์ธ๊ฐ€?โ€ โ†’ Spring Modulith

@jaeyeong951 jaeyeong951 added the log ํšŒ์˜, ์ง€์‹, ๊ทธ ์™ธ์˜ ๋ชจ๋“  ๋ฌธ์„œ label Jan 12, 2025
@jaeyeong951 jaeyeong951 self-assigned this Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
log ํšŒ์˜, ์ง€์‹, ๊ทธ ์™ธ์˜ ๋ชจ๋“  ๋ฌธ์„œ
Projects
None yet
Development

No branches or pull requests

1 participant