Commit graph

99 commits

Author SHA1 Message Date
Andrea Selva
57edf74751
Bump 8.11.5 (#15782) 2024-01-11 10:10:05 +01:00
João Duarte
53d154c54f
bump version to 8.11.4 (#15682) 2023-12-12 10:09:08 +00:00
João Duarte
45f6dce3e8
Update JRuby to 9.4.5.0 (#15531) (#15670)
* update lockfile template's BUNDLED WITH to match jruby's bundler
* upgrade jruby-core in rubyUtils.gradle
2023-12-07 18:41:20 +00:00
João Duarte
3d22fb395a
bump to 8.11.3 (#15669) 2023-12-07 15:29:51 +00:00
João Duarte
9876ce105e
bump version to 8.11.2 (#15574) 2023-11-13 13:55:13 +00:00
João Duarte
ed3b2724d1
downgrade jackson until #15405 is fixed (#15549) 2023-11-08 11:04:14 +00:00
Mashhur
3b3c2a81ad
Bump version to 8.11.1 (#15542) 2023-11-07 08:05:39 -08:00
João Duarte
6e0bd7290c
Update JDK to 17.0.9+9 and jackson to 2.15.3 (#15510) 2023-10-27 11:26:03 +01:00
github-actions[bot]
13309ad4fd
deps: downgrade jruby, keep updated default-gem dependencies (forward-port #15283) (#15369) (#15370)
* deps: downgrade jruby, keep updated default-gem dependencies (#15283)

forward-ports non-release-branch components of #15283 to `main`

* deps: downgrade jruby, keep updated default-gem dependencies

By downgrading JRuby to 9.4.2.0 we avoid the silent global crash of the
scheduler backing `Concurrent::TimerTask` that occurs when Jruby 9.4.3.0's
invokedynamic promotes a method to run natively, incorrectly.

Upstream bug: https://github.com/jruby/jruby/issues/7904

Along with the downgrade of JRuby itself to 9.4.2.0, we cherry-pick the
updates to gems that were included in the latest JRuby 9.4.3.0 to ensure
we don't back out relevant fixes to stdlib.

We also remove a pinned-dependency on `racc` that is no longer relevant.

Resolves: https://github.com/elastic/logstash/issues/15282

* Imported the licenses for some gems

- cgi
- date
- ffi-binary-libfixposix
- io-console
- net-http
- net-protocol
- reline
- time
- timeout
- uri

* specs: avoid mocking global ::Gem::Dependency::new

* build: remove redundanct dependsOn declaration

* deps: notice use of ffi-binary-libfixposix via Ruby license

this gem is tri-licensed `Ruby` / `EPL-2.0` / `LGPL-2.1-or-later` and
the Ruby license is preferred to EPL when available

---------

Co-authored-by: andsel <selva.andre@gmail.com>

* deps: add license notices for gems moved from default to bundled

---------

Co-authored-by: andsel <selva.andre@gmail.com>
(cherry picked from commit 70081bbcac)

Co-authored-by: Ry Biesemeyer <yaauie@users.noreply.github.com>
2023-10-03 14:41:08 -07:00
kaisecheng
da4c918122
bump to 8.11.0 (#15276) 2023-08-23 13:52:30 +01:00
João Duarte
dfc61c6693
Update JDK to 17.0.8+7 (#15215) 2023-07-25 10:13:48 +01:00
João Duarte
1d1fa7a471
update commons-io commons-compress jrjackson databind (#15125)
* update commons-io to 2.13.0 and commons-compress to 1.23.0

* update databind and jackson
2023-06-29 09:02:32 +02:00
Andrea Selva
26d1c7ccdb
Update to JRuby 9.4 (#14861)
Set of changes to make Logstash compatible to JRuby 9.4.
Bundle JRuby 9.4.3.0

- Redefine space token in `LSCL`  and `grammar` treetop from `_` which would generated methods in the form `def _0` (deprecated since `2.7`) to `sc`.
- `I18n.t` method doesn't accept hash as second argument
- `URI.encode` has been replaced with same functionality with `URI::Parser.new.escape`
- `YAML.load` needs explicit `fallback: false` to return false when the yaml string is empty (or contains only comments)
- JRuby's  `JavaClass` has been removed, now it can use `java.lang.Class` directly
- explicitly require gem `thwait` to satisfy `require "thwait"` (In `Gemfile.template` and `logstash-core/logstash-core.gemspec`)
- fix not args `clone` to be `def clone(*args)`
- fix `Enumeration.each_slice` which from `Ruby 3.1` is [chainable](https://rubyreferences.github.io/rubychanges/3.1.html#enumerableeach_cons-and-each_slice-return-a-receiver) and doesn't return `nil`. JRuby fixed in https://github.com/jruby/jruby/issues/7015
- Expanded `Down.download` arguments map ca16bbed3c302006967413eb9d3862f2da81f7ae
- Avoid to pass `nil` in the list of couples used in `Hash[ <list of couples> ]` which from Ruby `3.0` generates an `ArgumentError`
- Removed space not allowed between method name and parentheses `initialize (` is forbidden. 29b607dcdef98f81a73ad171639fd13aaa65e243
- With [Ruby 2.7 the `Kernel#open`](https://rubyreferences.github.io/rubychanges/2.7.html#network-and-web) doesn't fallback to `URI#open`, fixed test code that used that to verify open port. e5b70de54c5301f51a767da67294092af0cfafdc
- Avoid to drop `rdoc/` folder from vendored JRuby else `bin/logstash -i irb` would crash, commit b71f73e9c6edb81a7b7ae1305047e506f61c6e8c

Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
2023-06-28 13:05:43 +02:00
Rob Bavey
22dc7a8a91
Bump version to 8.10.0 (#15103) 2023-06-21 09:54:29 -04:00
Andrea Selva
643bb0c5c2
Bumped versions.yml for 8.9 cycle (#15022) 2023-04-26 10:50:45 +02:00
João Duarte
d7c81dfece
Update JDK to 17.0.7+7 (#15007) 2023-04-20 10:44:36 +01:00
Mashhur
0600ff98bb
Bump to 8.8.0 (#14874) 2023-02-08 09:14:13 +05:00
João Duarte
1b7820a7ae
update jruby to 9.3.10.0 (#14865)
* Fixed regression which caused longer strings to match slower https://github.com/jruby/jruby/issues/7484

fixes https://github.com/logstash-plugins/logstash-filter-grok/issues/185
2023-02-02 15:22:06 +00:00
Andrea Selva
3516986a38
Update bundeld JDK to 17.0.6+10 (#14849) 2023-01-24 18:25:17 +01:00
Mashhur
d1f3415d82
jrjackson and jackson versions bump. (#14845) 2023-01-18 22:01:15 +05:00
João Duarte
394abbd4b1
bump jruby to 9.3.9.0 (#14694)
fixes Encoding bug on Windows https://github.com/jruby/jruby/issues/7367
2022-11-28 15:35:10 +00:00
Andrea Selva
b40136c76c
Bump to 8.7.0 (#14755) 2022-11-16 16:34:29 +01:00
Andrea Selva
c6880f226f
Update bundled JDK to 17.0.5+8 (#14728) 2022-11-03 15:12:27 +01:00
João Duarte
05785e9a0b
bump to 8.6.0 (#14545) 2022-09-21 15:44:35 +01:00
Rob Bavey
0578ddbbd3
Upgrade jruby to 9.3.8.0 (#14524)
Also remove the explicit CSV import added in #14507, jruby-9.3.8.0 includes
the correct version by default
2022-09-13 17:36:40 -04:00
João Duarte
6bc2483cfc
bump jruby version to 9.3.7.0 (#14455) 2022-08-17 14:30:45 +01:00
Rob Bavey
4771ad61b9
Update version of the bundled JDK to 17.0.4+8 (#14424) 2022-08-09 09:21:23 -04:00
Rob Bavey
5a6460899d
Bump version to 8.5.0 (#14382) 2022-07-27 08:57:02 -04:00
Rob Bavey
0181745a99
This commit updates the default version of the JDK to jdk17. (#13343)
Also updates ci to jdk17.
2022-07-13 12:27:54 -04:00
Andrea Selva
430d3af7dc
Update dependencies (#14348) 2022-07-13 09:06:18 +02:00
Rob Bavey
d268f58a55
Update jruby to 9.3.6.0 (#14304) 2022-06-29 11:42:42 -04:00
João Duarte
4d6942c240
update jackson and jackson-databind to 2.13.3 (#13945)
In jackson-databind 2.10, enabling Default Typing requires having a type validator, and while there's an "allow all" validator called LaissezFaireSubTypeValidator, this commit also tightens the validation a bit by narrowing down the allowed classes.

The default typing validator is only applied to the ObjectMapper for CBOR, which is used in the DLQ, leaving the one for JSON as-is.

Other changes:
* make ingest-converter use versions.yml for jackson-databind
* update jrjackson
2022-06-06 09:47:44 +01:00
João Duarte
83b3c39871
bump version to 8.4.0 (#14161) 2022-05-25 12:12:25 +01:00
Rob Bavey
ea1690d5ba
update jdk to 11.0.15+10 (#14152)
This commit re-adds the update to jdk 11.0.15+10 originally made in #14031
2022-05-24 11:06:40 -04:00
Rob Bavey
9e2c87a1ab
Switch adoptopenjdk url to adoptium (#14098)
* Switch adoptopenjdk url to adoptium

Newer versions of the JDK are only available from api.adoptium.net, and not dual hosted on api.adoptopenjdk.net
This commit allows the use of adoptium versions of the JDK.

Relates: #14072
2022-05-24 09:33:44 -04:00
Rob Bavey
4a2268a43f
Update jruby version to 9.3.4.0 (#14114)
This commit updates the version of jruby used in Logstash to `9.3.4.0`.

* Updates the references of `jruby` from `9.2.20.1` to `9.3.4.0`
* Updates references/locations of ruby from `2.5.0` to `2.6.0`
* Updates java imports including `org.logstash.util` to be quoted
  * Without quoting the name of the import, the following error is observed in tests:
  * `java.lang.NoClassDefFoundError: org/logstash/Util (wrong name: org/logstash/util)`
  * Maybe an instance of https://github.com/jruby/jruby/issues/4861
* Adds a monkey patch to `require` to resolve compatibility issue between latest `jruby` and `polyglot` gem 
  * The addition of https://github.com/jruby/jruby/pull/7145 to disallow circular
causes, will throw when `polyglot` is thrown into the mix, and stop logstash from
starting and building - any gems that use an exception to determine whether or not
to load the native gem, will trigger the code added in that commit.
  * This commit adds a monkey patch of `require` to rollback the circular cause exception
back to the original cause.
* Removes the use of the deprecated `JavaClass`
* Adds additional `require time` in `generate_build_metadata`
* Rewrites a test helper to avoid potentially calling `~>` on `FalseClass`


Co-authored-by: Joao Duarte <jsvduarte@gmail.com>
Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
2022-05-19 10:29:59 -04:00
João Duarte
53f23403c0 Revert "update jdk to 11.0.15+10 (#14031)"
This reverts commit 478eb6834a.

AdoptOpenJdk is lagging behind Adoptium and we should move the
downloadJdk gradle task to use Adoptium instead.
Until then, we're reverting this change to use a version available from
AdoptOpenJdk.
2022-05-04 15:01:16 +01:00
João Duarte
478eb6834a
update jdk to 11.0.15+10 (#14031) 2022-05-04 11:33:55 +01:00
João Duarte
d339563ead
bump to 8.3.0 (#13950) 2022-03-30 12:26:25 +01:00
João Duarte
eec3f22bb2
bump jdk to 11.0.14.1+1 (#13687) 2022-02-17 13:42:06 +00:00
Andres Rodriguez
df0aee71eb
bump version to 8.2.0 (#13720) 2022-02-03 17:01:11 -05:00
Karol Bucek
3637a30e8f
Refactor: drop redundant (jruby-complete.jar) dependency (#13159)
Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
2022-02-02 06:55:26 +01:00
João Duarte
8d3127e8f5
bump jruby to 9.2.20.1 (#13468) 2021-12-02 11:20:33 +00:00
João Duarte
a921f96be4
Update bundled JDK to 11.0.13+8 (#13437) 2021-11-23 13:29:15 +00:00
Karol Bucek
55e7a26416
Deps: update JRuby to 9.2.20.0 (#13387) 2021-11-03 17:27:10 +01:00
João Duarte
f8e796c0b5
bump version to 8.1.0 (#13366) 2021-10-27 10:27:51 +01:00
Andrea Selva
ebb9e04d14
Update bundled JDK to 11.0.12+7 (#13185) 2021-08-31 17:00:06 +02:00
Karol Bucek
fe387f4ef5
Deps: update JRuby to 9.2.19.0 (#12989) 2021-06-16 09:34:49 +02:00
Karol Bucek
ee6038afec
Deps: update JRuby to 9.2.18.0 (#12791)
+ Fix: a missing require in bootstrap
2021-06-09 11:21:41 +02:00
Andrea Selva
4f63701d6d
Update bundled JDK to 11.0.11+9 (#12881) 2021-05-10 18:20:05 +02:00