Do checkPluginDescription in SimpleJvmPluginDescription.init

This commit is contained in:
Him188 2020-10-23 13:00:08 +08:00
parent fc5fc18913
commit 9adc4cde55

View File

@ -65,7 +65,7 @@ public interface JvmPluginDescription : PluginDescription {
/** /**
* @see [PluginDescription.version] * @see [PluginDescription.version]
*/ */
@ResolveContext(PLUGIN_VERSION) version: SemVersion, version: SemVersion,
/** /**
* @see [PluginDescription.name] * @see [PluginDescription.name]
*/ */
@ -230,6 +230,6 @@ internal data class SimpleJvmPluginDescription
) : this(name, SemVersion(version), id, author, info, dependencies) ) : this(name, SemVersion(version), id, author, info, dependencies)
init { init {
require(!name.contains(':')) { "':' is forbidden in plugin name" } PluginDescription.checkPluginDescription(this)
} }
} }