mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-10 18:40:15 +08:00
Add pluginJarSuffix to metadata
This commit is contained in:
parent
394f817e41
commit
dd8a9efd4c
@ -76,7 +76,8 @@ internal data class PluginMetadata(
|
||||
val artifactId: String,
|
||||
val version: String,
|
||||
val description: String?,
|
||||
val dependencies: List<String>
|
||||
val dependencies: List<String>,
|
||||
val pluginJarSuffix: String
|
||||
)
|
||||
|
||||
internal fun String.wrapNameWithPlatform(target: KotlinTarget, isSingleTarget: Boolean): String {
|
||||
@ -115,7 +116,8 @@ private fun Project.registerPublishPluginTasks(target: KotlinTarget, isSingleTar
|
||||
artifactId = mirai.publishing.artifactId ?: project.name,
|
||||
version = mirai.publishing.version ?: project.version.toString(),
|
||||
description = mirai.publishing.description ?: project.description,
|
||||
dependencies = dependencies
|
||||
dependencies = dependencies,
|
||||
pluginJarSuffix = ".mirai"
|
||||
))
|
||||
|
||||
logger.info("Generated mirai plugin metadata json: $json")
|
||||
|
Loading…
Reference in New Issue
Block a user