Framework/Springboot

[Springboot] gradlew command not found / IntelliJ μΈν…”λ¦¬μ œμ΄ gradlew λΉŒλ“œ 였λ₯˜

yuri lee 2023. 1. 28. 20:00
λ°˜μ‘ν˜•

Intro

μ•ˆλ…•ν•˜μ„Έμš”. μΈν…”λ¦¬μ œμ΄ ν„°λ―Έλ„μ—μ„œ gradlew λΉŒλ“œλ₯Ό ν•˜λ €λ˜ 도쀑 μ•„λž˜μ™€ 같은 였λ₯˜κ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€. 

 

 

Why?

μ €λŠ” μ•„λž˜μ™€ 같은 λͺ…λ Ήμ–΄λ₯Ό μ‚¬μš©ν•˜μ˜€λŠ”λ°μš”, ꡬ글링을 ν•˜λ‹€κ°€ μ²˜μŒμ—λŠ” κΆŒν•œ 문제인 쀄 μ•Œκ³  κΆŒν•œμ„ λ°”κΏ”λ΄€μŠ΅λ‹ˆλ‹€. ν•˜μ§€λ§Œ 계속 같은 였λ₯˜κ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€. κ·Έλž˜μ„œ 더 ꡬ글링을 ν•΄λ΄€κ³ , μ œκ°€ 바보같은 μ‹€μˆ˜λ₯Ό ν•˜κ³  μžˆμ—ˆμŒμ„ κΉ¨λ‹¬μ•˜μŠ΅λ‹ˆλ‹€.

gradlew build

 

How to solve the problem

λ°”λ‘œ λͺ…λ Ήμ–΄ μ•žμ— ./ λ₯Ό 뢙여주지 μ•Šμ•˜κΈ° λ•Œλ¬Έμž…λ‹ˆλ‹€. πŸ˜… λ¦¬λˆ…μŠ€/λ§₯κ³Ό μœˆλ„μš° λͺ…λ Ήμ–΄ μ‚¬μš©λ²•μ΄ λ‹€λ₯΄λ‹ˆ μ•„λž˜ λ‚΄μš© μ°Έκ³  λΆ€νƒλ“œλ¦½λ‹ˆλ‹€. 

 

Linux / MacOS

./gradlew

 

Windows

.\gradlew

 


https://stackoverflow.com/questions/41700798/gradlew-command-not-found

λ°˜μ‘ν˜•