From 8bb01d6358c071f4d07803018c5e4f939dbba2f0 Mon Sep 17 00:00:00 2001 From: Suyog Rao Date: Tue, 9 Aug 2016 17:47:02 -0700 Subject: [PATCH] Fix the require_jar warning about jackson jars jrjackson was using 2.7.3 whereas core was using 2.7.0. Upgraded jrjackson to 0.4.0 and core libs to match jars in jrjackson Fixes #5159 Fixes #5750 --- logstash-core-event-java/build.gradle | 4 ++-- .../lib/logstash-core-event-java_jars.rb | 12 ++++++------ .../logstash-core-event-java.gemspec | 4 ++-- logstash-core/logstash-core.gemspec | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/logstash-core-event-java/build.gradle b/logstash-core-event-java/build.gradle index cbefa2fc893..8227db430c2 100644 --- a/logstash-core-event-java/build.gradle +++ b/logstash-core-event-java/build.gradle @@ -92,8 +92,8 @@ idea { } dependencies { - compile 'com.fasterxml.jackson.core:jackson-core:2.7.1' - compile 'com.fasterxml.jackson.core:jackson-databind:2.7.1-1' + compile 'com.fasterxml.jackson.core:jackson-core:2.7.3' + compile 'com.fasterxml.jackson.core:jackson-databind:2.7.3' provided 'org.jruby:jruby-core:1.7.25' testCompile 'junit:junit:4.12' testCompile 'net.javacrumbs.json-unit:json-unit:1.9.0' diff --git a/logstash-core-event-java/lib/logstash-core-event-java_jars.rb b/logstash-core-event-java/lib/logstash-core-event-java_jars.rb index d4503671464..8b75882166a 100644 --- a/logstash-core-event-java/lib/logstash-core-event-java_jars.rb +++ b/logstash-core-event-java/lib/logstash-core-event-java_jars.rb @@ -2,13 +2,13 @@ begin require 'jar_dependencies' rescue LoadError - require 'com/fasterxml/jackson/core/jackson-core/2.7.1/jackson-core-2.7.1.jar' - require 'com/fasterxml/jackson/core/jackson-annotations/2.7.0/jackson-annotations-2.7.0.jar' - require 'com/fasterxml/jackson/core/jackson-databind/2.7.1-1/jackson-databind-2.7.1-1.jar' + require 'com/fasterxml/jackson/core/jackson-databind/2.7.3/jackson-databind-2.7.3.jar' + require 'com/fasterxml/jackson/core/jackson-annotations/2.7.3/jackson-annotations-2.7.3.jar' + require 'com/fasterxml/jackson/core/jackson-core/2.7.3/jackson-core-2.7.3.jar' end if defined? Jars - require_jar( 'com.fasterxml.jackson.core', 'jackson-core', '2.7.1' ) - require_jar( 'com.fasterxml.jackson.core', 'jackson-annotations', '2.7.0' ) - require_jar( 'com.fasterxml.jackson.core', 'jackson-databind', '2.7.1-1' ) + require_jar( 'com.fasterxml.jackson.core', 'jackson-databind', '2.7.3' ) + require_jar( 'com.fasterxml.jackson.core', 'jackson-annotations', '2.7.3' ) + require_jar( 'com.fasterxml.jackson.core', 'jackson-core', '2.7.3' ) end diff --git a/logstash-core-event-java/logstash-core-event-java.gemspec b/logstash-core-event-java/logstash-core-event-java.gemspec index ef8d2a2bad5..42c190b5f28 100644 --- a/logstash-core-event-java/logstash-core-event-java.gemspec +++ b/logstash-core-event-java/logstash-core-event-java.gemspec @@ -26,6 +26,6 @@ Gem::Specification.new do |gem| # which does not have this problem. gem.add_runtime_dependency "ruby-maven", "~> 3.3.9" - gem.requirements << "jar com.fasterxml.jackson.core:jackson-core, 2.7.1" - gem.requirements << "jar com.fasterxml.jackson.core:jackson-databind, 2.7.1-1" + gem.requirements << "jar com.fasterxml.jackson.core:jackson-core, 2.7.3" + gem.requirements << "jar com.fasterxml.jackson.core:jackson-databind, 2.7.3" end diff --git a/logstash-core/logstash-core.gemspec b/logstash-core/logstash-core.gemspec index ececc74a80e..26c3b318c4c 100644 --- a/logstash-core/logstash-core.gemspec +++ b/logstash-core/logstash-core.gemspec @@ -46,7 +46,7 @@ Gem::Specification.new do |gem| if RUBY_PLATFORM == 'java' gem.platform = RUBY_PLATFORM - gem.add_runtime_dependency "jrjackson", "~> 0.3.7" #(Apache 2.0 license) + gem.add_runtime_dependency "jrjackson", "~> 0.4.0" #(Apache 2.0 license) else gem.add_runtime_dependency "oj" #(MIT-style license) end