diff --git a/lib/pom.rb b/lib/pom.rb index d42bc0bb6d6..a62a31905b8 100644 --- a/lib/pom.rb +++ b/lib/pom.rb @@ -252,6 +252,18 @@ def log(message=nil) File.join(global_bin, "jruby#{RbConfig::CONFIG['EXEEXT']}") end + # Disable extension build for gems (none of ours require a build) + class Gem::Ext::Builder + def build_extensions + return if @spec.extensions.empty? + + say "Skipping native extensions." + + FileUtils.mkdir_p File.dirname(@spec.gem_build_complete_path) + FileUtils.touch @spec.gem_build_complete_path + end + end + ctx.project.artifacts.select do |a| a.group_id == 'rubygems' || a.group_id == 'org.jruby.gems' end.each do |a|