Skip to content

Commit

Permalink
dep: update minimum java version from 7 to 8
Browse files Browse the repository at this point in the history
- Modern OpenJDK (e.g., 21) won't build for Java 7 making development hard
- JRuby 9.4 only supports Java 8 and later, and Nokogiri only supports JRuby 9.4+
- Java 7 extended support finally ended in July 2022
  - https://support.oracle.com/knowledge/Middleware/2809708_1.html

See related commit 08e5560 which updated the minimum to 7 from 6 in
2020 (v1.11.0).
  • Loading branch information
flavorjones committed Feb 21, 2024
1 parent d7ee3b6 commit 86652b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rakelib/extensions.rake
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,8 @@ if java?

ext.ext_dir = "ext/java"
ext.lib_dir = "lib/nokogiri"
ext.source_version = "1.7"
ext.target_version = "1.7"
ext.source_version = "1.8"
ext.target_version = "1.8"
ext.classpath = ext.gem_spec.files.select { |path| File.fnmatch?("**/*.jar", path) }.join(":")
ext.debug = true if ENV["JAVA_DEBUG"]
end
Expand Down

0 comments on commit 86652b1

Please sign in to comment.