Skip to content

Commit 2e38b34

Browse files
authored
Update README.md
1 parent 9b8af36 commit 2e38b34

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,15 @@ mkdir .bloop
9090
bazel-things/metals-config/write_bloop_config.py --name src > .bloop/src.json
9191
```
9292
The script can also account for imported scala code, by querying the location of all external dependencies with the prefix `scala_project_`, hence `scala_project_some_inhouse_project` in the earlier example.
93+
## Toolchain and doze
94+
The official scala bazel rules provide a set of toolchain parameters for enabling unused and strict dependency checking.
95+
The toolchains can be registered globally as follows.
96+
```starlark
97+
register_toolchains("@scala_things//toolchain")
98+
```
99+
The parameters are already well documented in the official rules.
100+
### Doze
101+
When building, it may occur that there are unused dependencies that cause the build to fail (we see unused deps as errors.
102+
Fortunately the unused dep rule provides a command that requires `buildozer`, to remove the unused dependencies.
103+
The shell script `doze/doze.sh` justs take the stream of the supplied command and runs the buildozel commands.
104+
```doze bazel build "//..."```

0 commit comments

Comments
 (0)