Add debug message when a plugin is not found when generating the NOTICE File

Fixes #8404
This commit is contained in:
Pier-Hugues Pellerin 2017-09-27 09:06:24 -04:00
parent ac6feed21d
commit 32a62b6c6c

View file

@ -44,6 +44,9 @@ namespace "license" do
seen_dependencies = Hash.new
LogStash::RakeLib::DEFAULT_PLUGINS.each do |plugin|
gemspec = Gem::Specification.find_all_by_name(plugin)[0]
if gemspec.nil?
raise "Fail to generate `NOTICE.TXT` file because #{plugin} was not found in the installed plugins specifications"
end
gemspec.runtime_dependencies.each do |dep|
name = dep.name
next if SKIPPED_DEPENDENCIES.include?(name) || seen_dependencies.key?(name)