1
0
mirror of https://github.com/mamoe/mirai.git synced 2025-04-09 02:10:10 +08:00

Migrate -Xopt-in to -opt-in

This commit is contained in:
Him188 2022-05-30 16:19:25 +01:00
parent 732e61e37d
commit 92222cf1e0

View File

@ -64,7 +64,7 @@ fun Project.configureJvmTarget() {
tasks.withType(KotlinCompile::class)
.filter { it.name.contains("test", ignoreCase = true) }
.forEach { task ->
task.kotlinOptions.freeCompilerArgs += "-Xopt-in=net.mamoe.mirai.utils.TestOnly"
task.kotlinOptions.freeCompilerArgs += "-opt-in=net.mamoe.mirai.utils.TestOnly"
}
extensions.findByType(JavaPluginExtension::class.java)?.run {