Skip to content

Commit

Permalink
fixes #60 by clarifying the getting started path
Browse files Browse the repository at this point in the history
  • Loading branch information
ittaiz committed May 24, 2016
1 parent 1e80999 commit ce1cfac
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ This rule is used for building [Scala][scala] projects with Bazel. There are
currently four rules, `scala_library`, `scala_macro_library`, `scala_binary`
and `scala_test`.

## Getting started

In order to use `scala_library`, `scala_macro_library`, and `scala_binary`,
you must have bazel 0.2.3 and add the following to your WORKSPACE file:

Expand All @@ -32,11 +34,11 @@ To use a particular tag, use the tagged number in `tag = ` and omit the `commit`
Note that these plugins are still evolving quickly, as is bazel, so you may need to select
the version most appropriate for you.

You may wish to have these rules loaded by default using bazel's prelude. Add the line:
```
Then in your BUILD file just add the following so the rules will be available:
```python
load("@io_bazel_rules_scala//scala:scala.bzl", "scala_library", "scala_binary", "scala_test")
```
to the file `tools/build_rules/prelude_bazel` in your repo.
You may wish to have these rules loaded by default using bazel's prelude. You can add the above to the file `tools/build_rules/prelude_bazel` in your repo (don't forget to have a, possible empty, BUILD file there) and then it will be automatically prepended to every BUILD file in the workspace.

[scala]: http://www.scala-lang.org/

Expand Down

0 comments on commit ce1cfac

Please sign in to comment.