Skip to content

Commit

Permalink
feat: dependsOn mirai
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Jun 21, 2023
1 parent e25dd13 commit 5afb898
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,11 @@ public class JvmPluginDescriptionBuilder(
@ResolveContext(VERSION_REQUIREMENT) versionRequirement: String,
isOptional: Boolean = false,
): JvmPluginDescriptionBuilder = apply {
// XXX: 兼容性
if (pluginId == "net.mamoe.mirai.console" || pluginId == "net.mamoe.mirai") {
consoleRequirement = versionRequirement
return@apply
}
this.dependencies.add(PluginDependency(pluginId, versionRequirement, isOptional))
}

Expand Down

0 comments on commit 5afb898

Please sign in to comment.