diff options
author | Charles Oliver Nutter <headius@headius.com> | 2023-02-08 13:32:12 +0100 |
---|---|---|
committer | Charles Oliver Nutter <headius@headius.com> | 2023-03-08 12:36:16 -0500 |
commit | 1d38e4d3725ae26b143b63cdd049d4efa1bc7011 (patch) | |
tree | 684b0d4809b2976dccda8e19c45587859cd234fb | |
parent | c233be905baa7889c26ce033d07ecab90a395f00 (diff) | |
download | json-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-- | Rakefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |