[build] Add dummy compileJava and testClasses to allow IntelliJ IDEA to run main functions from jvmTest

This commit is contained in:
Him188 2023-09-09 15:45:39 +08:00
parent 24a783de4a
commit b500830a51
No known key found for this signature in database
GPG Key ID: 0B199D2C430CD6A1

View File

@ -173,6 +173,16 @@ if (tasks.findByName("androidMainClasses") != null) {
configureMppPublishing()
configureBinaryValidators(setOf("jvm", "android").filterTargets())
tasks.register("compileJava") {
description = "Dummy task to allow IntelliJ IDEA to run main functions from jvmTest"
dependsOn(tasks.getByName("compileKotlinJvm"))
}
tasks.register("testClasses") {
description = "Dummy task to allow IntelliJ IDEA to run main functions from jvmTest"
dependsOn(tasks.getByName("compileTestKotlinJvm"))
}
//mavenCentralPublish {
// artifactId = "mirai-core"
// githubProject("mamoe", "mirai")