Skip to content

Commit

Permalink
Merge pull request #516 from headius/java_8
Browse files Browse the repository at this point in the history
JRuby requires a minimum of Java 8
  • Loading branch information
hsbt committed Mar 8, 2023
2 parents c233be9 + 1d38e4d commit 248bc5b
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 248bc5b

Please sign in to comment.