Skip to content

Commit

Permalink
Build: Fix meta plugin bundled plugin names (#29147)
Browse files Browse the repository at this point in the history
This commit fixes the directory name bundled plugins are added under
within a meta plugin to be the configured name of the bundled plugin,
instead of the project name.
  • Loading branch information
rjernst authored Mar 20, 2018
1 parent f7a1267 commit e582510
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,13 @@ class MetaPluginBuildPlugin implements Plugin<Project> {
buildProperties.extension.plugins.each { String bundledPluginProjectName ->
Project bundledPluginProject = project.project(bundledPluginProjectName)
bundledPluginProject.afterEvaluate {
String bundledPluginName = bundledPluginProject.esplugin.name
bundle.configure {
dependsOn bundledPluginProject.bundlePlugin
from(project.zipTree(bundledPluginProject.bundlePlugin.outputs.files.singleFile)) {
eachFile { FileCopyDetails details ->
// we want each path to have the plugin name interjected
details.relativePath = new RelativePath(true, bundledPluginProjectName, details.relativePath.toString())
details.relativePath = new RelativePath(true, bundledPluginName, details.relativePath.toString())
}
}
}
Expand Down

0 comments on commit e582510

Please sign in to comment.