No external deps on Rubygems.org?

Charles Oliver Nutter headius at headius.com
Thu Oct 13 11:47:35 EDT 2011


I ran into a snag trying to demo JRuby's support for installing Maven
artifacts as gems: rubygems.org does not allow pushing gems with
external dependencies.

For the "cloby" gem, which exposes Clojure's STM and persistent list
as Ruby instance variables, I wanted to have a dependency on Clojure
directly from Maven, using JRuby's maven gem support. The gem name for
that looks like "mvn:org.clojure:clojure". This worked well as a
dependency in the gemspec, and local copies of the gem would also
fetch Clojure from Maven Central. But I was not able to push the gem
to rubygems.org.

Inability to push gems that depend on Maven artifacts waters down that
support considerably. It also means we would need to start pushing
Maven libraries to Rubygems.org for every such library anyone depends
on...which could mean hundreds of gems that only exist to wrap a JVM
library. I know nobody wants that (and that's why we built this
support into JRuby) so perhaps we can reach a compromise?

- Charlie


More information about the RubyGems-Developers mailing list