Add generated runtime_dependency to logstash core plugin

Fixes #8418
This commit is contained in:
Rob Bavey 2017-10-10 14:37:23 -04:00
parent 2c28fb0196
commit 783f7f0186
2 changed files with 8 additions and 2 deletions

View file

@ -7,6 +7,12 @@ if !defined?(ALL_VERSIONS)
require 'yaml'
ALL_VERSIONS = YAML.load_file(File.expand_path("../../versions-gem-copy.yml", File.dirname(__FILE__)))
end
if !defined?(LOGSTASH_CORE_PLUGIN_API)
unless defined?(LOGSTASH_CORE_PLUGIN_API)
LOGSTASH_CORE_PLUGIN_API = ALL_VERSIONS.fetch("logstash-core-plugin-api")
end
unless defined?(LOGSTASH_CORE_VERSION)
LOGSTASH_CORE_VERSION = ALL_VERSIONS.fetch("logstash-core")
end

View file

@ -36,7 +36,7 @@ Gem::Specification.new do |gem|
gem.require_paths = ["lib"]
gem.version = LOGSTASH_CORE_PLUGIN_API
gem.add_runtime_dependency "logstash-core", "7.0.0.alpha1"
gem.add_runtime_dependency "logstash-core", LOGSTASH_CORE_VERSION.gsub("-", ".")
# Make sure we dont build this gem from a non jruby
# environment.