mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-25 07:30:14 +08:00
Avoid resolution ambiguity
This commit is contained in:
parent
fd23a03618
commit
b173b9ad30
@ -146,11 +146,9 @@ public class JvmPluginDescriptionBuilder(
|
||||
public fun dependsOn(
|
||||
pluginId: String,
|
||||
isOptional: Boolean = false,
|
||||
versionRequirement: VersionRequirement? = null,
|
||||
versionRequirement: VersionRequirement,
|
||||
): JvmPluginDescriptionBuilder = apply {
|
||||
if (versionRequirement == null)
|
||||
this.dependencies.add(PluginDependency(pluginId, versionRequirement, isOptional))
|
||||
else this.dependencies.add(PluginDependency(pluginId, versionRequirement, isOptional))
|
||||
this.dependencies.add(PluginDependency(pluginId, versionRequirement, isOptional))
|
||||
}
|
||||
|
||||
/**
|
||||
@ -161,11 +159,9 @@ public class JvmPluginDescriptionBuilder(
|
||||
@ILoveKuriyamaMiraiForever
|
||||
public fun dependsOn(
|
||||
pluginId: String,
|
||||
versionRequirement: VersionRequirement? = null,
|
||||
versionRequirement: VersionRequirement,
|
||||
): JvmPluginDescriptionBuilder = apply {
|
||||
if (versionRequirement == null)
|
||||
this.dependencies.add(PluginDependency(pluginId, versionRequirement, false))
|
||||
else this.dependencies.add(PluginDependency(pluginId, versionRequirement, false))
|
||||
this.dependencies.add(PluginDependency(pluginId, versionRequirement, false))
|
||||
}
|
||||
|
||||
/**
|
||||
@ -178,7 +174,7 @@ public class JvmPluginDescriptionBuilder(
|
||||
pluginId: String,
|
||||
isOptional: Boolean = false,
|
||||
): JvmPluginDescriptionBuilder = apply {
|
||||
dependsOn(pluginId, isOptional, null)
|
||||
this.dependencies.add(PluginDependency(pluginId, null, isOptional))
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
object Versions {
|
||||
const val core = "1.2.3"
|
||||
const val console = "1.0-M4-dev-10"
|
||||
const val console = "1.0-M4-dev-11"
|
||||
const val consoleGraphical = "0.0.7"
|
||||
const val consoleTerminal = "0.1.0"
|
||||
const val consolePure = console
|
||||
|
Loading…
Reference in New Issue
Block a user