Fix resources packaging in buildPlugin

This commit is contained in:
Him188 2020-11-13 15:35:38 +08:00
parent e406cd58cd
commit d1f431e98e

View File

@ -96,6 +96,9 @@ class MiraiConsoleGradlePlugin : Plugin<Project> {
compilations.forEach {
dependsOn(it.compileKotlinTask)
from(it.output)
for (allKotlinSourceSet in it.allKotlinSourceSets) {
from(allKotlinSourceSet.resources)
}
}
from(project.configurations.getByName("runtimeClasspath").copyRecursive { dependency ->