Hi guys, can someone please tell me how to disable...
# coroutines
j
Hi guys, can someone please tell me how to disable warnings in IntelliJ for
ExperimentalCoroutinesApi
when using maven? (the following is obviously not working)
Copy code
<configuration>
	<args>
		<args>-Xuse-experimental=kotlin.Experimental</args>
		<args>-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi</args>
		<args>-Xuse-experimental=kotlinx.coroutines.ObsoleteCoroutinesApi</args>
	</args>
</configuration>
g
-Xuse-experimental
->
-Xexperimental
j
Thank you very much @gildor! May I ask where did you find this information? Do you know why is it different from we write in gradle builds?
g
this is how I use it with gradle
j
mmhhh... my gradle works fine like this:
Copy code
compileTestKotlin {
    kotlinOptions {
        freeCompilerArgs = [
                '-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi',
                '-Xuse-experimental=kotlinx.coroutines.ObsoleteCoroutinesApi'
        ]
    }
}
Do you know where I could find documentation about that?
g
do you see compile-time warnings or only IDE?
j
No I don't see compile-type warnings as far as I remember (cannot check right now)
g
So, probably it’s just some tooling issue
maybe make sense to report it
j
Actually, I still have the problem using "-Xexperimental" instead of "-Xuse-experimental" 😕
And I checked, I do have compile time warnings
g
Maybe it's just incorrect way to pass arguments. I just not familiar with kotlin maven