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 9f6a09061d
commit b7e4ed75d7
No known key found for this signature in database
GPG Key ID: BA439CDDCF652375

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 {