Update excluded dependencies

This commit is contained in:
Him188 2020-12-01 11:19:23 +08:00
parent dd8a9efd4c
commit e608a3dbbc
2 changed files with 8 additions and 4 deletions

View File

@ -104,11 +104,17 @@ internal val IGNORED_DEPENDENCIES_IN_SHADOW = arrayOf(
"net.mamoe:mirai-core-metadata",
"net.mamoe:mirai-core-common",
"net.mamoe:mirai-core-jvm",
"net.mamoe:mirai-core-android",
"net.mamoe:mirai-core-jvmCommon",
"net.mamoe:mirai-core-commonJvm",
"net.mamoe:mirai-core-api", // for future
"net.mamoe:mirai-core-api-metadata",
"net.mamoe:mirai-core-api-common",
"net.mamoe:mirai-core-api-jvm",
"net.mamoe:mirai-core-api-android",
"net.mamoe:mirai-core-api-jvmCommon",
"net.mamoe:mirai-core-api-commonJvm",
"net.mamoe:mirai-core-qqAndroid",
"net.mamoe:mirai-core-qqAndroid-metadata",

View File

@ -76,8 +76,7 @@ internal data class PluginMetadata(
val artifactId: String,
val version: String,
val description: String?,
val dependencies: List<String>,
val pluginJarSuffix: String
val dependencies: List<String>
)
internal fun String.wrapNameWithPlatform(target: KotlinTarget, isSingleTarget: Boolean): String {
@ -116,8 +115,7 @@ 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,
pluginJarSuffix = ".mirai"
dependencies = dependencies
))
logger.info("Generated mirai plugin metadata json: $json")