1
0
mirror of https://github.com/mamoe/mirai.git synced 2025-04-25 13:03:35 +08:00

[gradle] Suppress deprecation on compileKotlinTask since we still need to support older Kotlin versions

This commit is contained in:
Him188 2023-04-17 14:02:54 +01:00
parent f0bdd18d26
commit cd18eb857d
No known key found for this signature in database
GPG Key ID: BA439CDDCF652375

View File

@ -153,6 +153,7 @@ public class MiraiConsoleGradlePlugin : Plugin<Project> {
val compilations = target.compilations.filter { it.name == MAIN_COMPILATION_NAME }
compilations.forEach {
@Suppress("DEPRECATION") // We need to support older Kotlin versions
dependsOn(it.compileKotlinTask)
from(it.output.allOutputs)
}