Skip to content

Commit 2e52fb9

Browse files
authored
Merge pull request #6 from fishy/master
Fix plugin_opts and README.md
2 parents d33ff8e + cd80fde commit 2e52fb9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ executable jar.
127127
### Rule attributes
128128

129129
| Name | Type | Description |
130-
| --- | --- | --- | --- |
130+
| --- | --- | --- |
131131
| `srcs` | `label_list` | Kotlin source files `*.kt` |
132132
| `deps` | `label_list` | List of `kotlin_library` targets |
133133
| `jars` | `label_list` | List of jar provider targets (`java_library`, `java_import`) |

kotlin/rules.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ def _kotlin_library_impl(ctx):
1414
args += ["-X%s" % opt for opt in ctx.attr.x_opts]
1515

1616
# Plugin options
17-
for k, v in ctx.attr.plugin_opts:
17+
for k, v in ctx.attr.plugin_opts.items():
1818
args += ["-P"]
19-
args += ["plugin:%s:%s" % (k, v)]
19+
args += ["plugin:%s=\"%s\"" % (k, v)]
2020

2121
# Make classpath if needed, first from this rules, then from
2222
# dependent rules.

0 commit comments

Comments
 (0)