Skip to content

Commit

Permalink
Expose ksp_version (#989)
Browse files Browse the repository at this point in the history
  • Loading branch information
zalewskise committed Jul 17, 2023
1 parent d460654 commit d584c43
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,20 @@ kt_jvm_library(
)
```

To choose a different `ksp_version` distribution,
do the following in your `WORKSPACE` file (or import from a `.bzl` file):

```python
load("@io_bazel_rules_kotlin//kotlin:repositories.bzl", "kotlin_repositories", "ksp_version")

kotlin_repositories(
ksp_compiler_release = ksp_version(
release = "1.8.22-1.0.11",
sha256 = "2ce5a08fddd20ef07ac051615905453fe08c3ba3ce5afa5dc43a9b77aa64507d",
),
)
```

# Kotlin compiler plugins

The `kt_compiler_plugin` rule allows running Kotlin compiler plugins, such as no-arg, sam-with-receiver and allopen.
Expand Down
2 changes: 2 additions & 0 deletions kotlin/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ load(
"//src/main/starlark/core/repositories:initialize.bzl",
_kotlin_repositories = "kotlin_repositories",
_kotlinc_version = "kotlinc_version",
_ksp_version = "ksp_version",
_versions = "versions",
)

kotlin_repositories = _kotlin_repositories
versions = _versions
kotlinc_version = _kotlinc_version
ksp_version = _ksp_version

0 comments on commit d584c43

Please sign in to comment.