Coursera 'FPP in Scala' 과제 제출 방법 정리

Coursier

$ brew install coursier/formulas/coursier
$ cs setup

SBT

$ cs setup --jvm adopt:11

# PATH 설정 안한 경우 cs 있는 곳 가서 하기
$ ./cs setup --jvm adopt:11
$ sbt about

image


The Basics

Base

Directory Structure

image

SBT build definition files

image


SBT tasks

Starting up sbt

# This is the shell of the operating system
$ cd /path/to/parprog-project-directory
$ sbt
# This is the sbt shell
>

Scala interpreter

image

Compiling your Code

Testing your Code

Running your Code

Submitting your Solution to Coursera

# sbt 실행중일 때
submit e-mail@university.org suBmISsioNPasSwoRd

# sbt 실행 안했을 때도 아래처럼 제출 가능
sbt "submit e-mail@university.org suBmISsioNPasSwoRd"