These are chat archives for jruby-gradle/jruby-gradle-plugin

31st
Mar 2016
Rahul Somasunderam
@rahulsom
Mar 31 2016 21:37

Hi! If a gemfile has something like this

gem 'fhir_model', git: 'https://github.com/fhir-crucible/fhir_dstu2_models.git', :branch => 'master'

How do I turn it into a gradle dependency?

Blane Dabney
@raelik
Mar 31 2016 21:46
@rahulsom technically, you don't, at least not directly.
Rahul Somasunderam
@rahulsom
Mar 31 2016 21:47
@raelik are there any popular workarounds?
Blane Dabney
@raelik
Mar 31 2016 21:47
If you don't need to process any dependencies of that gem (i.e. you have all of them already defined in your build.gradle), you can set up an Ivy repository with a pattern layout to point it at github
Rahul Somasunderam
@rahulsom
Mar 31 2016 21:48
thanks @raelik I'll try that out
Blane Dabney
@raelik
Mar 31 2016 21:48
if you do need to process its dependencies, you can publish the gem to a private gem server and add that as a rubygems() repository
R. Tyler Croy
@rtyler
Mar 31 2016 21:50
@rahulsom a couple days ago @ysb33r shared this neat hack which may be relevant to your interests: https://gist.github.com/ysb33r/9f95bab338b912c45986
Blane Dabney
@raelik
Mar 31 2016 21:52
Indeed, that's the ivy repo w/ pattern layout I mentioned.
R. Tyler Croy
@rtyler
Mar 31 2016 21:54
TEAMWORK!
rtyler @rtyler spikes the volleyball
Rahul Somasunderam
@rahulsom
Mar 31 2016 21:55
@rtyler Thanks!
Schalk W. Cronjé
@ysb33r
Mar 31 2016 23:40
JUst rememebr if you pull a GEM via that Ivy kind of repo, you need to add @gem to the end of the dependency, because by default it will look for a JAR.