You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: allow passing KSP options via kt_ksp_plugin (#1478)
* feat: allow passing KSP options via kt_ksp_plugin
* test: add an integration test with a KSP plugin
* throw an error on duplicate option keys
* exclude test lib from wildcard build analysis
Define a KSP plugin for the Kotlin compiler to run. The plugin can then be referenced in the `plugins` attribute
@@ -485,6 +485,7 @@ kt_jvm_library(
485
485
| <aid="kt_ksp_plugin-name"></a>name | A unique name for this target. | <ahref="https://bazel.build/concepts/labels#target-names">Name</a> | required ||
486
486
| <aid="kt_ksp_plugin-deps"></a>deps | The list of libraries to be added to the compiler's plugin classpath | <ahref="https://bazel.build/concepts/labels">List of labels</a> | optional |`[]`|
| <aid="kt_ksp_plugin-options"></a>options | Processor options passed to the KSP processor via SymbolProcessorEnvironment.options. Each entry is a key-value pair available to the processor at processing time. | <ahref="https://bazel.build/rules/lib/core/dict">Dictionary: String -> String</a> | optional |`{}`|
488
489
| <aid="kt_ksp_plugin-processor_class"></a>processor_class | The fully qualified class name that the Java compiler uses as an entry point to the annotation processor. | String | required ||
489
490
| <aid="kt_ksp_plugin-target_embedded_compiler"></a>target_embedded_compiler | Plugin was compiled against the embeddable kotlin compiler. These plugins expect shaded kotlinc dependencies, and will fail when running against a non-embeddable compiler. | Boolean | optional |`False`|
0 commit comments