diff --git a/mirai-core/build.gradle.kts b/mirai-core/build.gradle.kts index 08cde0e6ad..42fbda9a8e 100644 --- a/mirai-core/build.gradle.kts +++ b/mirai-core/build.gradle.kts @@ -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")