๐Ÿ’ป/ํ”„๋กœ๊ทธ๋ž˜๋ฐ

[programming in Scala] 01. ์Šค์นผ๋ผ ํ™˜๊ฒฝ ์„ค์ •

ruhz 2023. 8. 6. 15:37
# 0. jdk ์„ค์น˜
sudo apt install openjdk-11-jdk

# 1. Scala ์„ค์น˜ (cs setup)
curl -fL https://github.com/coursier/coursier/releases/latest/download/cs-x86_64-pc-linux.gz | gzip -d > cs && chmod +x cs && ./cs setup

# 2. IntelliJ Scala Plugin ์„ค์น˜

# 3. IntelliJ ์—์„œ, Settings > Build, Execution, Deployment > Build Tools > sbt > sbt project: sbt shell > Allow overring sbt version ์„ uncheck.

build.properties์— ๋ฒ„์ „์„ ์ง€์ •ํ•˜๋ฉด, sbt์˜ version์„ ์ง€์ •ํ•˜์—ฌ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋‹ค(์ง€์ •ํ•˜์ง€ ์•Š์œผ๋ฉด latest๋ฅผ default๋กœ ๊ฐ€์ ธ์˜จ๋‹ค). ๊ทธ๋Ÿฐ๋ฐ 3๋ฒˆ ๊ณผ์ •์„ ์ง„ํ–‰ํ•˜์ง€ ์•Š์œผ๋ฉด, build.properties์˜ ์ง€์ • ๋ฒ„์ „์„ ๋ฌด์‹œํ•˜๊ณ  IntelliJ ์ž์ฒด์ ์œผ๋กœ latest ๋ฒ„์ „์œผ๋กœ ๋ฎ์–ด์“ฐ๋Š” ๊ฒฝ์šฐ๊ฐ€ ์žˆ๋‹ค.

https://github.com/ruhz3/environment/tree/laptop/laptop