Skip to content

Commit

Permalink
only pack the required jars
Browse files Browse the repository at this point in the history
  • Loading branch information
mkristian authored and enebo committed Oct 24, 2013
1 parent babf3c9 commit b555db5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions maven/jruby-jars/jruby-jars.gemspec
Expand Up @@ -3,15 +3,16 @@ require 'rexml/document'
require 'rexml/xpath'

doc = REXML::Document.new File.new(File.join('..', '..', 'pom.xml'))
version = REXML::XPath.first(doc, "//project/version").text

Gem::Specification.new do |s|
s.name = 'jruby-jars'
s.version = REXML::XPath.first(doc, "//project/version").text
s.version = version.sub( /-SNAPSHOT/, '.SNAPSHOT' )
s.authors = ['Charles Oliver Nutter']
s.email = "headius@headius.com"
s.summary = "The core JRuby code and the JRuby stdlib as jar files."
s.homepage = 'http://github.com/jruby/jruby/tree/master/gem/jruby-jars'
s.description = File.read('README.txt', encoding: "UTF-8").split(/\n{2,}/)[3]
s.rubyforge_project = 'jruby/jruby'
s.files = FileList['[A-Z]*', 'lib/**/*', 'test/**/*'].to_a
s.files = FileList['[A-Z]*', 'lib/**/*.rb', "lib/**/jruby-*-#{version}.jar", 'test/**/*'].to_a
end

0 comments on commit b555db5

Please sign in to comment.