From 1d38e4d3725ae26b143b63cdd049d4efa1bc7011 Mon Sep 17 00:00:00 2001 From: Charles Oliver Nutter Date: Wed, 8 Feb 2023 13:32:12 +0100 Subject: JRuby requires a minimum of Java 8 More recent JDKs will reject this command line because 1.6 is too old to build for. --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 8de6ded..4d79252 100644 --- a/Rakefile +++ b/Rakefile @@ -155,7 +155,7 @@ if defined?(RUBY_ENGINE) and RUBY_ENGINE == 'jruby' classpath = (Dir['java/lib/*.jar'] << 'java/src' << JRUBY_JAR) * ':' obj = src.sub(/\.java\Z/, '.class') file obj => src do - sh 'javac', '-classpath', classpath, '-source', '1.6', '-target', '1.6', src + sh 'javac', '-classpath', classpath, '-source', '1.8', '-target', '1.8', src end JAVA_CLASSES << obj end -- cgit v1.2.1