Add task cleanExceptIntellij

This commit is contained in:
Him188 2021-02-03 21:28:04 +08:00
parent af72c4ec25
commit 14258b8212

View File

@ -136,6 +136,14 @@ subprojects {
}
}
tasks.register("cleanExceptIntellij") {
group = "build"
allprojects.forEach {
if (it.name != "mirai-console-intellij")
dependsOn(it.tasks.findByName("clean"))
}
}
fun Project.useIr() {
kotlinCompilations?.forEach { kotlinCompilation ->
kotlinCompilation.kotlinOptions.freeCompilerArgs += "-Xuse-ir"