From ff2cac7d48415e53aa7bd9a57bec05ecd301ce70 Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Sat, 29 Dec 2018 15:26:55 +0100 Subject: [PATCH] Java Extension: use at least Java 1.8, avoid warnings --- Rakefile | 2 -- {tasks => rakelib}/extension.rake | 2 ++ {tasks => rakelib}/rspec.rake | 0 {tasks => rakelib}/rubocop.rake | 0 4 files changed, 2 insertions(+), 2 deletions(-) rename {tasks => rakelib}/extension.rake (83%) rename {tasks => rakelib}/rspec.rake (100%) rename {tasks => rakelib}/rubocop.rake (100%) diff --git a/Rakefile b/Rakefile index 6b42522..f68e2a5 100644 --- a/Rakefile +++ b/Rakefile @@ -3,8 +3,6 @@ require "bundler/gem_tasks" require "rake/clean" -Dir[File.expand_path("../tasks/**/*.rake", __FILE__)].each { |task| load task } - task default: %w[compile spec rubocop] CLEAN.include "**/*.o", "**/*.so", "**/*.bundle", "**/*.jar", "pkg", "tmp" diff --git a/tasks/extension.rake b/rakelib/extension.rake similarity index 83% rename from tasks/extension.rake rename to rakelib/extension.rake index 457e8cf..a15d472 100644 --- a/tasks/extension.rake +++ b/rakelib/extension.rake @@ -4,6 +4,8 @@ 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" end else require "rake/extensiontask" diff --git a/tasks/rspec.rake b/rakelib/rspec.rake similarity index 100% rename from tasks/rspec.rake rename to rakelib/rspec.rake diff --git a/tasks/rubocop.rake b/rakelib/rubocop.rake similarity index 100% rename from tasks/rubocop.rake rename to rakelib/rubocop.rake