1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages.ko/common/sbt.md

37 lines
691 B
Markdown
Raw Normal View History

# sbt
> Scala 및 Java 프로젝트를 위한 빌드 도구.
> 더 많은 정보: <https://www.scala-sbt.org/1.x/docs/>.
- REPL(대화형 셸) 시작:
`sbt`
- GitHub에 호스팅된 기존 Giter8 템플릿에서 새 Scala 프로젝트 생성:
`sbt new {{scala/hello-world.g8}}`
- 모든 테스트 컴파일 및 실행:
`sbt test`
- `target` 디렉토리의 모든 생성된 파일 삭제:
`sbt clean`
- `src/main/scala``src/main/java` 디렉토리의 주요 소스 컴파일:
`sbt compile`
- 지정된 버전의 sbt 사용:
`sbt -sbt-version {{버전}}`
- 특정 jar 파일을 sbt 실행 파일로 사용:
`sbt -sbt-jar {{경로}}`
- 모든 sbt 옵션 나열:
`sbt -h`