Skip to content

Commit

Permalink
[build] Add dummy compileJava and testClasses to allow IntelliJ I…
Browse files Browse the repository at this point in the history
…DEA to run main functions from jvmTest
  • Loading branch information
Him188 committed Sep 9, 2023
1 parent 24a783d commit b500830
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions mirai-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit b500830

Please sign in to comment.