Skip to content

Commit

Permalink
Fix java 8 compatibility. (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahorek authored Apr 2, 2023
1 parent 3999cc1 commit 640386b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ jobs:

steps:
- uses: actions/checkout@v3

- name: set JAVA_HOME
if: |
startsWith(matrix.ruby, 'jruby')
shell: bash
run: |
echo JAVA_HOME=$JAVA_HOME_11_X64 >> $GITHUB_ENV
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{matrix.ruby}}
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ end

group :development, :test do
gem "coveralls", require: false
gem "rake-compiler", require: false
gem "rake-compiler", "~> 1.1.9", require: false
gem "rspec", "~> 3.7", require: false
gem "rubocop", "0.82.0", require: false
end
3 changes: 1 addition & 2 deletions rakelib/extension.rake
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ if defined? JRUBY_VERSION
require "rake/javaextensiontask"
Rake::JavaExtensionTask.new("nio4r_ext") do |ext|
ext.ext_dir = "ext/nio4r"
ext.source_version = "1.8"
ext.target_version = "1.8"
ext.release = '8'
end
else
require "rake/extensiontask"
Expand Down

0 comments on commit 640386b

Please sign in to comment.