Skip to content

Commit 911edde

Browse files
committed
Use Maven to build the api and native artifacts
Not sure this is really relevant for the Rake build but the Java artifacts should be built with Maven, not JavaExtensionTask. The latter does not take into consideration Java dependencies and is difficult to adapt to multiple source directories.
1 parent 1983383 commit 911edde

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

Rakefile

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,8 @@ if RUBY_ENGINE == "ruby" and !ENV["PRISM_FFI_BACKEND"]
3838
ext.gem_spec = Gem::Specification.load("prism.gemspec")
3939
end
4040
elsif RUBY_ENGINE == "jruby"
41-
require "rake/javaextensiontask"
42-
43-
# This compiles java to make sure any templating changes produces valid code.
44-
Rake::JavaExtensionTask.new(:compile) do |ext|
45-
ext.name = "prism"
46-
ext.ext_dir = "java"
47-
ext.lib_dir = "tmp"
48-
ext.release = "21"
49-
ext.gem_spec = Gem::Specification.load("prism.gemspec")
41+
task :compile do
42+
sh "mvn -f java/pom.xml -pl api -pl native package"
5043
end
5144
end
5245

0 commit comments

Comments
 (0)