Skip to content

Commit

Permalink
Merge pull request jruby#8415 from headius/skip_default_gem_extensions
Browse files Browse the repository at this point in the history
Skip extension builds for default gems
  • Loading branch information
headius authored Nov 11, 2024
2 parents c679b93 + 280b0f8 commit 6f9df83
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/pom.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit 6f9df83

Please sign in to comment.