Bladeren bron

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

Him188 2 jaren geleden
bovenliggende
commit
b500830a51
1 gewijzigde bestanden met toevoegingen van 10 en 0 verwijderingen
  1. 10 0
      mirai-core/build.gradle.kts

+ 10 - 0
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")