Commit graph

41 commits

Author SHA1 Message Date
Karol Bucek
aa931661c6 Updated: JRuby to 9.2.11.1
Fixes #11723
2020-03-26 11:35:02 +00:00
Karol Bucek
22d07520e4 Updated: JRuby to 9.2.11.0
- fix: deprecation warnings due JRuby 9.2.11
- fix: compat for upgraded RubyGems 3.0

Fixes #11647
2020-03-05 11:40:47 +00:00
Rob Bavey
f2ab8fefa8 Update JrJackson and jackson deps
Fixes #11478
2020-01-09 19:45:59 +00:00
Joao Duarte
0924e97da4 update jruby to 9.2.9.0
Fixes #11281
2019-11-21 09:36:29 +00:00
Rob Bavey
a4ac5cce52 Update version of jrjackson
0.4.10 includes multi-threading improvements

Fixes #11164
2019-09-26 13:21:41 +00:00
João Duarte
e44ec7ad41
update jruby to 9.2.8.0 (#11041) 2019-08-13 07:45:42 +01:00
Rob Bavey
f5e76034c9 Update jrjackson, jackson versions
Also splits out jackson and jackson databind versions to allow separate revisions
 for databind.

Fixes #11040
2019-08-12 18:08:22 +00:00
Guy Boertje
fc74c3c392 Bump JrJackson to 0.4.8
Fixes #10748
2019-05-07 08:36:29 +00:00
Joao Duarte
79a4fd1601 bump jruby to 9.2.7.0
Revert "work around jruby-5642 during package installation on jdk11 (#10658)"

This reverts commit 033c896330.

skip the bundler-1.16.6 files when unpacking jruby

Fixes #10674
2019-04-11 21:32:32 +00:00
João Duarte
925b9daa21
bump jruby to 9.2.6.0 (#10425) 2019-02-18 16:34:07 +00:00
João Duarte
7b6d60c433
bump to 8.0.0 (#10400) 2019-02-06 15:04:44 +00:00
Ry Biesemeyer
583ec6b625
Java 11 support (#10279)
* bump jruby to 9.2

* don't rely on logstash-base docker image

* work around webmock ruby 2.5 support

* ensure data folder exists in docker

* change fixnum and bignum to integer

* FileUtils.rmdir to rm_rf

this is because from 2.3 to 2.5 FileUtils.rmdir will throw an exception
if the directory isn't empty. On 2.3 the operation will just not delete
the directory silently.

* bump jruby to 9.2.5.0 and fix test

* make rake default task since prepare pack needs it

* Resolve compiler warnings (#10247)

There are 3 types of compiler warnings that are either resolved or suppressed:

1. Rawtypes: In JRuby 9.2, `RubyArray` is a generic, so references throughout
   our codebase to the now "raw" type trigger warnings. In most cases we cannot
   actually resolve the issue, since the JRuby-provided methods for creating
   `RubyArray`s still return the raw type, so these have been suppressed.

2. Deprecations:
   - `RubyString#intern19()` -> `RubyString#intern()`
   - `RubyString#downcase19(ThreadContext)` -> `RubyString#downcase(ThreadContext)`
   - `NativeException`: remove import & reference directly; suppress usage
     warnings
   - `RaiseException()`: migrate to equivalent non-deprecated methods wherever
     possible; in some cases where we are using this in conjunction with the
     also-deprecated `NativeException` to preserve java stacktraces, there
     seems to be no non-deprecated path forward, so these cases have been
     suppressed.

3. Redundant Casts
   - Resolved

* JRuby 9.2 bundler shenanigans (#10266)

* Revert "Revert "remove forced dependency on old bundler (#9395)""

This reverts commit bef984143d.

* plugin management: update internal bundler to 1.17.x APIs

* deps: update dev dependency webmock to version compatible with JRuby 9.2

* spec: update Pack fixture to include manticore version that doesn't conflict

* build: update gradle to version that has Java 11 support

* java11: resolve or suppress deprecation warnings

* Remove superfluous flag opting into ParNew GC implementation

When opting into CMS garbage collector with `XX:+UseConcMarkSweepGC`, the
young generation collector ParNew has been the default since Java 8, making
the `XX:+UseParNew` flag redundant; the flag was removed in Java 9, and
should no longer be specified to work with modern Javas.

https://bugs.openjdk.java.net/browse/JDK-8006478
https://openjdk.java.net/jeps/214

* spec: set thread name to example description for easier debugging

* spec: prevent errors in testing specs by checking against skip list before using

* no-op: remove use of `HashMap#computeIfAbsent` on single-threaded code

> This method will, on a best-effort basis, throw a `ConcurrentModificationException`
> if it is detected that the mapping function modifies this map during computation.
>
> -- https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/HashMap.html#computeIfAbsent(K,java.util.function.Function)

* qa: by default, run integration against Elastic Stack 6.5.x

To support development on Logstash on top of Java 11, default to testing
against an Elastic Stack that is capable of running on Java 11.

* qa: ignore deprecation warnings when comparing offline pack output

* qa: add Java 9+ support to ChildProcess dev dependency

this can safely be removed when the childprocess gem supports Java9+
https://github.com/enkessler/childprocess/pull/141

* qa: allow connections to localhost in webmock

* bump jrjackson version

* fix filebeat integration tests

* spec: ensure license compliance spec runs first

The license compliance spec that validates the licenses of bundled
plugins appears to not be compatible with the hooks that we inject
into bundler for plugin management, and will fail in obscure ways
when run after those hooks have been added. Since those hooks are
not necessary for validating licenses, the easiest solution was to
ensure that those specs run first, before the VM has been poluted.

Since the gradle/junit/rspec bridge that is currently in place
runs all specs in the same JVM, we also need to make sure that the
rspec "world" is reset before a run, to ensure that it doesn't
retain spec definitions from previous runs.

Also updates the rake invocation, although I'm not sure it is used
any more.
2019-02-04 16:36:11 -08:00
Dan Hermann
e6d59de458
Update java dependencies (#10340) 2019-01-18 08:16:13 -06:00
Guy Boertje
1f7a369993
Add VERSION_QUALIFIER support for use by release manager (#10117)
* Add VERSION_QUALIFIER support for use by release manager

* Make the gem build processes aware of the version qualifier

* Try debugging xpack ci test failure.

* Try to use the artifacts-api.elastic.co api for ES download.

* It builds/tests locally now.

* add some comments explaining the artifacts-api and the version string

* cahnges requested in review.

Fixes #9956
2018-11-07 22:39:52 +00:00
Jake Landis
ab45527d55 Update jackson deps to 2.9.5
Fixes #9369
2018-04-13 14:34:12 +00:00
Jake Landis
8dadffbbe2 Bump to jackson 2.9.4 and pin jrjackson to exact version
Fixes #9182
2018-02-21 16:07:11 +00:00
Jordan Sissel
b3366d7ed6 Revert "Upgrade to JRuby 9.1.14.0"
This reverts commit d38e4ff665.
(Original commit was part of
https://github.com/elastic/logstash/pull/8620)

The revert is due to `UDPSocket.new(Socket::AF_INET)` crashing in
9.1.14.0:

* https://github.com/elastic/logstash/issues/8736
* https://github.com/jruby/jruby/issues/4869

Fixes #8738
2017-11-27 21:37:46 +00:00
Armin
d38e4ff665 Upgrade to JRuby 9.1.14.0
Fixes #8620
2017-11-09 10:12:47 +00:00
Colin Surprenant
9bc93759a4 upgrade JrJackson to 0.4.4 to fix #8439 2017-10-12 11:39:25 -04:00
Guy Boertje
9b09d4c899 bump JrJackson/Jackson versions, source all version refs from versions.yml
final (I hope) fixes for consolidated versioning.

After testing with rake artifact:zip, need to try both files.
Add desc to rake test:install-* tasks, tired of
  not seeing them in rake -vT

changes requested via review

Fixes #8373
2017-09-26 15:29:58 +00:00
Colin Surprenant
62df616196 add jruby-runtime-override in versions.yml, update jruby version to 9.1.13.0, relax jruby-ssl version to >= 0.9.20
add option for different jruby runtime version

relax jruby-ssl version to >= 0.9.20

rename jruby-runtime to jruby-runtime-override and add sha1 IGNORE option

use JRuby released version of 9.1.13.0
2017-09-07 12:13:19 -04:00
Suyog Rao
b6bcbda8e4 bump master version to 7.0.0-alpha1 (#7791) 2017-07-24 11:51:40 -07:00
Jake Landis
55fac65160 VERSION BUMP: 6.0.0-alpha3 -> 6.0.0-beta1 (#7636) 2017-07-11 12:07:11 +01:00
João Duarte
1cccbd3372 bump jruby to 9.1.12.0 (#7628) 2017-07-10 19:28:24 +01:00
Pier-Hugues Pellerin
6a4766a01f Centralize the JRuby version
We have multiple places to declare the jruby version, this commit
centralize everything into the `version.yml` file. This is now used by
the ruby part and the gradle build file to correctly fetch the jruby
library.

Fixes #7434
2017-06-13 15:44:31 +00:00
Suyog Rao
dcd79d2f57 bump master version to 6.0.0-alpha3 (#7343)
* bump master version to 6.0.0-alpha3
2017-06-06 11:51:02 -07:00
Suyog Rao
e01d247d5e revert to alpha2 until we release 2017-05-31 08:41:12 -07:00
Suyog Rao
23604c13c1 bump version to 6.0.0-beta1 (#7278) 2017-05-31 08:39:13 -07:00
Joao Duarte
d17a77e76d bump version to 6.0.0-alpha2 2017-05-11 18:18:29 +01:00
Tal Levy
9974df427d remove old legacy logstash-core-event (#6783)
and migrate spec tests to core
2017-03-02 10:55:30 -08:00
Tal Levy
2e3b06b812 migrate core-queue-jruby into logstash-core (#6782) 2017-03-02 10:12:03 -08:00
Tal Levy
6fb8096a54 migrate logstash-core-event-java to logstash-core (#6760) 2017-03-01 15:31:17 -08:00
Pier-Hugues Pellerin
3ea565ae3b make sure jruby queue is on 6.0.0 alpha1
Fixes #6380
2016-12-08 14:29:28 -05:00
Pier-Hugues Pellerin
80fcadd931 Allow rake version:set to update the logstash-core-queue-jruby gem
Fixes #6380
2016-12-08 14:29:28 -05:00
Colin Surprenant
761f9f1bc9 merge feature/java_persistence into master 2016-11-01 17:13:23 -04:00
Suyog Rao
ceb5103e01 bump plugin version to match RubyGems.org (#5909) 2016-09-13 19:03:13 -07:00
Suyog Rao
65a8676a86 Bump master to 6.0.0-alpha1 (#5880)
* Bump master to 6.0.0-alpha1
2016-09-08 08:33:27 -07:00
Andrew Cholakian
f57b5f0cb1 Cleanup OutputDelegatorStrategy refactor
This fixes two issues:

1. This fully removes the xopts parameter which for Shared and Single concurrency would prevent outputs from receiving their parameters
2. This cleans up the injection of the OutputDelegatorStrategyRegistry.

This also bumps the plugin api version to 2.1.12

Fixes #5794
2016-08-22 12:54:57 -04:00
Suyog Rao
e7dcdd66ba Bump to 5.0.0-alpha6, next release (#5751) 2016-08-09 23:33:15 -07:00
Joao Duarte
4cf8031a49 bump to 5.0.0-alpha5
Fixes #5585
2016-07-05 10:03:22 -04:00
Joao Duarte
a859bd4a3f add single command release task and other release support tooling
Purpose:

* manage releases through a minimum number of rake tasks
* simplify building of snapshot builds
* create staged artifacts, candidates for releases, that required no changes to become releases
* this means the snapshot release process will not involve publishing gems, therefore:
* the gem artifacts should only be published to rubygems as a final artifact, at the time of GA

Changes:

* release artifacts no longer depend on gems of core components
* all core components are used locally AS-IS to minimize code changes between snapshot, RC and GA
* `versions.yml` describes the versions of all logstash parts and package
  * `rake version:set[version]` manage the yaml file and push the changes to the gemspecs/version.rb files
  * `rake version:set_plugin_api[version]` manage the yaml file and push the changes to the gemspecs/version.rb files
  * `rake artifact:all` generates SNAPSHOT artifacts: tar.gz, zip, rpm, deb
  * `RELEASE=1 rake artifact:all` creates release candidate artifacts + 4 gems: logstash-core, logstash-core-event, logstash-core-event-java and logstash-core-plugin-api

implements #5416 and #5414

Fixes #5460
2016-06-20 04:23:48 -04:00