mkristian / jbundler

bundler support for jars for jruby
MIT License
210 stars 39 forks source link

How to define jar dependencies (maven) w/ alternate repository in gemspec? #71

Open ouiliame opened 8 years ago

ouiliame commented 8 years ago

I'm trying to do

ruby Gem::Specification.new do |spec| spec.add_dependency "jbundler" spec.requirements << "jar 'jsprit:jsprit-core', '1.6.2'" end

The jarfile was:

`repository "https://github.com/jsprit/mvn-rep/raw/master/releases"

jar 'jsprit:jsprit-core', '1.6.2'

`

but when I run jbundle install when I need to use the gem somewhere (i.e. my rails app), I run into some errors because it isn't found in the central maven repository. How would I go about adding a new repository? If I add it to the gem's Jarfile, jbundle install doesnt seem to pick up on the required jars when I run it in the rails app.

Thanks