I have this in my dependencies ```@OptIn(Experimen...
# compose-desktop
z
I have this in my dependencies
Copy code
@OptIn(ExperimentalComposeLibrary::class)
implementation(compose.material3)
It's wanting me to add
This annotation should be used with the compiler argument '-opt-in=kotlin.RequiresOptIn'
for @OptIn I tried this but it the warning is still there
Copy code
tasks.withType<KotlinCompile> {
    kotlinOptions {
        freeCompilerArgs = freeCompilerArgs + "-opt-in=kotlin.RequiresOptIn"
    }
}
s
You shouldn't need that flag with kotlin 1.7. I'm not an expert on gradle, but that flag isn't going to be used to process your gradle files. I think you might need to edit your gradle.properties for that.
c
also, fwiw, I think you'd need a space before the
-opt
otherwise wouldn't the freeCompileArgs be something like:
-some-compile-arg=avalue-opt-in=kotlin.RequiresOptIn
(unless it's a List<String> in which case I'll get back in my box 😂)
s
It's a list.
c
in my box I go!