Trying: ``` project.tasks.withType(KotlinCompile:...
# gradle
p
Trying:
Copy code
project.tasks.withType(KotlinCompile::class.java).configureEach {
			kotlinOptions {
				allWarningsAsErrors = true
				freeCompilerArgs = freeCompilerArgs +
					listOf("-Xopt-in=kotlin.RequiresOptIn", "-opt-in=kotlin.time.ExperimentalTime")
			}
		}
and running into:
Copy code
e: Invalid argument: -opt-in=kotlin.time.ExperimentalTime
Am I getting the syntax wrong? That's how it's documented @ https://kotlinlang.org/docs/opt-in-requirements.html#module-wide-opt-in AFAICT
👀 1
b
Add optins via kotlin.spurceSets.all { it.languageSettings.optIn("annotation") }
e
In the 2nd optin youre missing the ‘X’