Framework/Springboot

[Springboot] μŠ€ν”„λ§λΆ€νŠΈ+μ½”ν‹€λ¦° jar.enabled = true not working 였λ₯˜ λ°œμƒ

yuri lee 2023. 1. 28. 22:40
λ°˜μ‘ν˜•

Intro

μ•ˆλ…•ν•˜μ„Έμš”. Springboot + kotlin 개발 ν™˜κ²½μ—μ„œ gradle μ„€μ •μ˜  "jar.enabled = true" 이 λ™μž‘ν•˜μ§€ μ•ŠλŠ” 였λ₯˜κ°€ λ°œμƒν•˜μ˜€μŠ΅λ‹ˆλ‹€. μΌλ°˜ Springboot + Java 개발 ν™˜κ²½μ—μ„œλŠ” λ‹€μŒμ˜ 섀정이 잘 μž‘λ™ν•˜λŠ”λ°, μ½”ν‹€λ¦°μ—μ„œλŠ” μž‘λ™ν•˜μ§€ μ•Šλ”λΌκ³ μš”. 

 

How to solve the problem

ꡬ글링 ν›„, μ•„λž˜μ˜ μ½”λ“œλ₯Ό μ°Ύμ•„ μ μš©ν•΄λ΄€λ”λ‹ˆ μ •μƒμ μœΌλ‘œ μž‘λ™ν•˜μ˜€μŠ΅λ‹ˆλ‹€. 이 외에도 μ—¬λŸ¬ 방법이 μžˆλŠ” 것 κ°™μœΌλ‹ˆ ν¬μŠ€νŒ… ν•˜λ‹¨ μ‚¬μ΄νŠΈλ₯Ό μ°Έκ³ ν•΄μ£Όμ‹œλ©΄ 쒋을 것 κ°™μŠ΅λ‹ˆλ‹€. 

tasks.withType<Jar> {
    archiveBaseName.set("octo-mobile-api")
}

 


https://github.com/spring-projects/spring-boot/issues/10238

λ°˜μ‘ν˜•