|
9 | 9 | # Kotlin Rules for Bazel
|
10 | 10 | [](https://travis-ci.org/pubref/rules_kotlin)
|
11 | 11 |
|
12 |
| -> Note: **These rules require Bazel 0.4.5 or higher**. |
| 12 | +Build [Kotlin][kotlin] source with with [Bazel][bazel]. |
13 | 13 |
|
14 |
| -These rules are for building [Kotlin][kotlin] source with with |
15 |
| -[Bazel][bazel]. |
| 14 | +| Rule | Description | |
| 15 | +| ---: | :--- | |
| 16 | +| `kotlin_repositories` | Load workspace dependencies | |
| 17 | +| [`kotlin_library`](#kotlin_library) | Build a java library from kotlin source | |
| 18 | +| [`kotlin_binary`](#kotlin_binary) | Build a java binary from kotlin source | |
| 19 | +| [`kotlin_android_library`](#kotlin_android_library) | Build an android library from kotlin source | |
| 20 | +| [`kotlin_test`](#kotlin_test) | Run a kotlin test | |
16 | 21 |
|
17 |
| -1. [kotlin_repositories](#kotlin_repositories) |
18 |
| -1. [kotlin_library](#kotlin_library) |
19 |
| -1. [kotlin_binary](#kotlin_binary) |
20 |
| -1. [kotlin_test](#kotlin_test) |
| 22 | +> Note: **Bazel 0.4.5 or higher is required**. |
21 | 23 |
|
22 | 24 | ## Workspace rules
|
23 | 25 |
|
@@ -254,7 +256,7 @@ Includes all `kotlin_library` attributes as well as:
|
254 | 256 | | --- | --- | --- |
|
255 | 257 | | `aar_deps` | `label_list` | List of AAR library targets |
|
256 | 258 |
|
257 |
| -And also [`android_library` arguments](android_library). |
| 259 | +And also [`android_library`](android_library) arguments. |
258 | 260 |
|
259 | 261 |
|
260 | 262 | ### kotlin_test
|
@@ -321,10 +323,9 @@ $ bazel test examples/helloworld:main_kt_test
|
321 | 323 | ## TODO
|
322 | 324 |
|
323 | 325 | 1. Proper `data` and runfiles support.
|
324 |
| -2. Proper android support. |
325 |
| -3. kapt support. |
326 |
| -4. Incremental compilation. |
| 326 | +2. kapt support. |
| 327 | +3. Incremental compilation. |
327 | 328 |
|
328 |
| -[bazel]: http://www.bazel.io |
| 329 | +[bazel]: http://www.bazel.build |
329 | 330 | [kotlin]: http://www.kotlinlang.org
|
330 | 331 | [android_library]: https://docs.bazel.build/versions/master/be/android.html#android_library_args
|
0 commit comments