From a6d33ac80068024c191557cbcbd3eebe5090fded Mon Sep 17 00:00:00 2001 From: James Couball Date: Thu, 14 Jan 2021 17:51:56 -0800 Subject: [PATCH] Remove JRuby on Windows workaround Signed-off-by: James Couball --- Rakefile | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/Rakefile b/Rakefile index 730e580a..acfa2bb0 100644 --- a/Rakefile +++ b/Rakefile @@ -42,32 +42,6 @@ unless RUBY_PLATFORM == 'java' # default_tasks << :yardstick end -if RUBY_PLATFORM == 'java' && Gem.win_platform? - # Reimplement the :build and :install task for JRuby on Windows - # There is a bug in JRuby on Windows that makes the `build` task from `bundler/gem_tasks` fail. - # Once https://github.com/jruby/jruby/issues/6516 is fixed, this block can be deleted. - version = Git::VERSION - pkg_name = 'git' - gem_file = "pkg/#{pkg_name}-#{version}.gem" - - Rake::Task[:build].clear - task :build do - FileUtils.mkdir 'pkg' unless File.exist? 'pkg' - `gem build #{pkg_name}.gemspec --output "#{gem_file}" --quiet` - raise 'Gem build failed' unless $CHILD_STATUS.success? - puts "#{pkg_name} #{version} built to #{gem_file}." - end - - Rake::Task[:install].clear - task :install => :build do - `gem install #{gem_file} --quiet` - raise 'Gem install failed' unless $CHILD_STATUS.success? - puts "#{pkg_name} (#{version}) installed." - end - - CLOBBER << gem_file -end - default_tasks << :build task default: default_tasks