include hidden ruby-maven directory in packaging

ruby-maven ships a hidden directory called .mvn that
needs to be included in the package.
Currently the list of files to be packaged is generated using
Rake::FileList[globs] which excludes hidden files by default
(same happens with Dir.glob).

The fix is to ensure the contents of that directory are included
by explicitly referencing it.

For example, the file "extensions.xml", included in this directory,
is responsible for loading the ruby DSL for POMs. Not carrying this
file in the logstash package breaks any plugin update that uses
jar-dependencies.

Fixes #4845
This commit is contained in:
Joao Duarte 2016-03-18 18:06:02 +00:00 committed by Suyog Rao
parent 5d85749551
commit c23d43217a

View file

@ -13,6 +13,13 @@ namespace "artifact" do
"lib/pluginmanager/**/*",
"patterns/**/*",
"vendor/??*/**/*",
# To include ruby-maven's hidden ".mvn" directory, we need to
# do add the line below. This directory contains a file called
# "extensions.xml", which loads the ruby DSL for POMs.
# Failing to include this file results in updates breaking for
# plugins which use jar-dependencies.
# See more in https://github.com/elastic/logstash/issues/4818
"vendor/??*/**/.mvn/**/*",
"Gemfile",
"Gemfile.jruby-1.9.lock",
]