summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Oliver Nutter <headius@headius.com>2023-02-08 13:32:12 +0100
committerCharles Oliver Nutter <headius@headius.com>2023-03-08 12:36:16 -0500
commit1d38e4d3725ae26b143b63cdd049d4efa1bc7011 (patch)
tree684b0d4809b2976dccda8e19c45587859cd234fb
parentc233be905baa7889c26ce033d07ecab90a395f00 (diff)
downloadjson-1d38e4d3725ae26b143b63cdd049d4efa1bc7011.tar.gz
JRuby requires a minimum of Java 8
More recent JDKs will reject this command line because 1.6 is too old to build for.
-rw-r--r--Rakefile2
1 files changed, 1 insertions, 1 deletions
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