Skip to content

Commit

Permalink
Use Java 21 for build
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Jan 9, 2025
1 parent abe144c commit 59fef54
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 @@ -132,7 +132,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.8', '-target', '1.8', src
sh 'javac', '-classpath', classpath, '-source', '21', '-target', '21', src
end
JAVA_CLASSES << obj
end
Expand Down

0 comments on commit 59fef54

Please sign in to comment.