Gavin Ray
08/06/2023, 5:02 PMKaptOptions.Builder()
API has an argument for passing options to javac
, but it expects Map<String, String>
Does anyone know how you can pass arguments like --enable-preview
which don't have an -flag=X
value?
public final class KaptOptions : org.jetbrains.kotlin.base.kapt3.KaptFlags {
// ...
public final class Builder public constructor() {
// ...
public final val javacOptions: kotlin.collections.MutableMap<kotlin.String, kotlin.String> /* compiled code */
I tried to search Github code usage and dug through hundreds of repos, but I couldn't find a single one which passes an argument like --enable-preview
to Kapt
tapchicoma
08/07/2023, 8:21 AMjavac.put("--enable-preview", "")
Gavin Ray
08/07/2023, 8:33 PMGavin Ray
08/07/2023, 8:33 PMkotlin-compile-testing
library tonight that fixes proper passing of javac
arguments to kapt
tasks 🙌