티스토리 뷰
Command line를 사용한 프로젝트 생성 방법.
Installaion:
( java, sbt, scala 등의 설치가 다 되어 있다는 가정하에 시작)
Create the project:
1. makdir new_project
2. sbt new scala/hello-world.g8
- target folder는 무시해도 됨.
- Github에서 hello-world를 pull하는 명령어
3. 2번과정에서 project이름을 물어보는데, 그 때 원하는 이름을 적으면 됨.
- 예) Try-synth -> Try-synth라는 이름의 project 생성
4. scala project 생성

Running the project.
cd 해당 폴더
Run sbt
~run
참고: docs.scala-lang.org/getting-started/sbt-track/getting-started-with-scala-and-sbt-on-the-command-line.html
Getting Started with Scala and sbt on the Command Line
In this tutorial, you’ll see how to create a Scala project from a template. You can use this as a starting point for your own projects. We’ll use sbt, the de facto build tool for Scala. sbt compiles, runs, and tests your projects among other related ta
docs.scala-lang.org
'scala' 카테고리의 다른 글
[scala] - About Scala's apply() functions (0) | 2020.03.15 |
---|---|
[scala] - trait, object, class (0) | 2020.03.15 |