Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ouiliame opened this issue Apr 15, 2016 · 0 comments

Comments

@ouiliame
Copy link

ouiliame commented Apr 15, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant