Skip to content

Commit

Permalink
JRuby requires a minimum of Java 8
Browse files Browse the repository at this point in the history
More recent JDKs will reject this command line because 1.6 is too
old to build for.
  • Loading branch information
headius committed Feb 8, 2023
1 parent 6447b45 commit c099838
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c099838

Please sign in to comment.