From dd8a9efd4cb4b3df4cb6537c28497b6fc5acbd15 Mon Sep 17 00:00:00 2001 From: Him188 Date: Tue, 1 Dec 2020 11:07:25 +0800 Subject: [PATCH] Add pluginJarSuffix to metadata --- tools/gradle-plugin/src/publishing.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/gradle-plugin/src/publishing.kt b/tools/gradle-plugin/src/publishing.kt index 39482d1d7..f899af944 100644 --- a/tools/gradle-plugin/src/publishing.kt +++ b/tools/gradle-plugin/src/publishing.kt @@ -76,7 +76,8 @@ internal data class PluginMetadata( val artifactId: String, val version: String, val description: String?, - val dependencies: List + val dependencies: List, + 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")