You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 008cafe
Browse filesBrowse the repository at this point in the historyBrowse files
script/setup ran `brew install --cask guardian/devtools/gu-scala`, which is
macOS-only and installs tools system-wide. It now runs `sbt update` to fetch
dependencies.
Removes the Windows-only setup.ps1. mise covers Windows.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: scala/README.md
+19-9Lines changed: 19 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,16 +2,26 @@
2
2
3
3
Skeleton project for Scala.
4
4
5
+
## Prerequisites
6
+
7
+
The toolchain this project needs is declared in [`.tool-versions`](./.tool-versions):
8
+
9
+
```
10
+
java corretto-21
11
+
sbt 1
12
+
```
13
+
14
+
Install those however you prefer, as long as they end up on your `PATH`. The quickest route is
15
+
[mise](https://mise.jdx.dev/), which reads the file for you:
16
+
17
+
```sh
18
+
mise install
19
+
```
20
+
5
21
## Usage
6
-
-`./script/setup` to install dependencies
7
-
-`./script/test` to run the tests
8
-
9
-
## Usage (on Windows)
10
-
- Make sure JDK version 8 or above is installed and JAVA_HOME environment variable is set
11
-
- Use Powershell to execute the below commands
12
-
-`PowerShell.exe -ExecutionPolicy UnRestricted -File .\script\setup.ps1` to download and extract portable sbt
13
-
- (If this script fails you can do this manually by visiting https://github.com/sbt/sbt/releases ,downloading the latest sbt zip and extracting it to ./coding-exercise-project/scala/sbt)
14
-
-`.\sbt\sbt\bin\sbt test` to run tests
22
+
-`./script/setup` to fetch dependencies
23
+
-`./script/test` to run the tests, or `./script/test --watch` to re-run them on every change
24
+
-`./script/start` to run the app
15
25
16
26
## Structure
17
27
- Code located in [`Main.scala`](./src/main/scala/gu/com/Main.scala)
0 commit comments