From d1f431e98e59a9e98c004ecc5d90243c881a5a59 Mon Sep 17 00:00:00 2001 From: Him188 Date: Fri, 13 Nov 2020 15:35:38 +0800 Subject: [PATCH] Fix resources packaging in buildPlugin --- tools/gradle-plugin/src/MiraiConsoleGradlePlugin.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/gradle-plugin/src/MiraiConsoleGradlePlugin.kt b/tools/gradle-plugin/src/MiraiConsoleGradlePlugin.kt index 427eba7b9..06ea0c733 100644 --- a/tools/gradle-plugin/src/MiraiConsoleGradlePlugin.kt +++ b/tools/gradle-plugin/src/MiraiConsoleGradlePlugin.kt @@ -96,6 +96,9 @@ class MiraiConsoleGradlePlugin : Plugin { compilations.forEach { dependsOn(it.compileKotlinTask) from(it.output) + for (allKotlinSourceSet in it.allKotlinSourceSets) { + from(allKotlinSourceSet.resources) + } } from(project.configurations.getByName("runtimeClasspath").copyRecursive { dependency ->