Skip to content

Commit

Permalink
Add generated runtime_dependency to logstash core plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
robbavey committed Oct 11, 2017
1 parent 2c28fb0 commit 783f7f0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
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

2 changes: 1 addition & 1 deletion logstash-core-plugin-api/logstash-core-plugin-api.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 783f7f0

Please sign in to comment.