Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ jobs:
strategy:
matrix:
java-version: [8, 21, 25]
ruby-version: [jruby-9.4, jruby-10.0]
ruby-version: [jruby-9.4, jruby-10.0, jruby-10.1]
task: ['', integration]
exclude:
# JRuby 10 requires Java 21 minimum
- ruby-version: jruby-10.0
- ruby-version: jruby-10.0 # JRuby 10 requires Java 21 minimum
java-version: 8
- ruby-version: jruby-10.1 # JRuby 10 requires Java 21 minimum
java-version: 8

fail-fast: false
Expand Down Expand Up @@ -50,7 +51,7 @@ jobs:
run: gem uninstall -a jruby-launcher

- name: Install dependencies
run: bundle install
run: BUNDLE_JOBS=1 bundle install

- name: Run tests
run: bundle exec rake ${{ matrix.task }}
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## 2.1.1 (UNRELEASED)

- #623: fix: ensure compatibility with JRuby 10.1
- #583: fix: Create config dir if it's missing for simpler usage
- #588: fix: NullPointerException during shutdown with executable war files
- #589: fix: Jetty wars don't have console logging enabled by default
Expand Down
3 changes: 3 additions & 0 deletions Mavenfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#-*- mode: ruby -*-
warn "ruby-maven is running fixed JRuby version #{JRUBY_VERSION}"

# tell the gem setup for maven where the java sources are
# and how to name the jar file (default path for the jar: ./lib )
Expand Down Expand Up @@ -53,5 +54,7 @@ plugin :invoker, '3.9.1' do
},
:goals => ['verify'],
:projectsDirectory => 'integration',
:pomIncludes => [ '*/pom.xml' ],
:pomExcludes => Java::JavaLang::System.getProperty('jruby.version').start_with?('10.1') ? ['rails7_test/pom.xml'] : [],
:streamLogs => true )
end
2 changes: 0 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ mvn << "-Dbundler.version=#{Bundler::VERSION}"
mvn << '--no-transfer-progress'
mvn << '--color=always'

mvn.inherit_jruby_version

desc 'compile java sources and build jar'
task :jar do
success = mvn.prepare_package
Expand Down
3 changes: 2 additions & 1 deletion spec/warbler/jbundler_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@

require File.expand_path('../../spec_helper', __FILE__)

describe Warbler::Jar, "with JBundler" do
should_skip = "JBundler is deprecated and not supported on Ruby 4.0 / JRuby 10.1" if RUBY_VERSION.to_f >= 4.0 || false
describe Warbler::Jar, "with JBundler", skip: should_skip do
use_fresh_rake_application
use_fresh_environment
run_out_of_process_with_drb
Expand Down
2 changes: 1 addition & 1 deletion warbler.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ bundle up all of your application files for deployment to a Java environment.}

gem.add_runtime_dependency 'rake', ['~> 13.0', '>= 13.0.3']
gem.add_runtime_dependency 'rexml', '~> 3.0'
gem.add_runtime_dependency 'jruby-jars', ['>= 9.4', '< 10.1']
gem.add_runtime_dependency 'jruby-jars', ['>= 9.4', '< 10.2']
gem.add_runtime_dependency 'jruby-rack', ['>= 1.2.7', '< 1.4']
gem.add_runtime_dependency 'rubyzip', ['>= 2.1.0', '< 4']
gem.add_runtime_dependency 'ostruct', '~> 0.6.2'
Expand Down