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

29th
Mar 2016
Dan Allen
@mojavelinux
Mar 29 2016 23:33
@ysb33r I was thinking of having a way to use flatDir from a git repo, perhaps by using the git plugin to clone the repo. This mimics Bundler's support for loading a gem directly from github (instead of via a gem file).
@ysb33r In other words, the equivalent of:
gem 'asciidoctor-bespoke', github: 'asciidoctor/asciidoctor-bespoke'
Schalk W. Cronjé
@ysb33r
Mar 29 2016 23:34
There are some ways of achieving that without cloning.
R. Tyler Croy
@rtyler
Mar 29 2016 23:34
rubygems gets complainy when you don't give it a .specification
Dan Allen
@mojavelinux
Mar 29 2016 23:34
The reason I ask is because I find myself having to tell people using the Gradle plugin to wait for the gem release.
And then they wait a long time :)
R. Tyler Croy
@rtyler
Mar 29 2016 23:34
the work in jem was largely to pick up things after a packged gem
Dan Allen
@mojavelinux
Mar 29 2016 23:35
A lot of early adopters are going to be using a gem directly out of master...just because they want to test features as they go in.
R. Tyler Croy
@rtyler
Mar 29 2016 23:36
jruby/gradle currently doesn't natively know about ruby dependencies
to make that work /exactly/ how bundler works, it would have to learn a lot more about dependency resolution than it does now
:(
Schalk W. Cronjé
@ysb33r
Mar 29 2016 23:36
1 Setup a Ivy repo in repositories with a pattern layout and point that to Github. or 2 Just pull it down locally with the VFS plugind and point a flatDir repo at it. Then you can do
gem ‘:asciidoctor-bespoke:0@gem
Dan Allen
@mojavelinux
Mar 29 2016 23:36
That's acceptable. I'm not worried about the dependencies. For me, it's just about being able to grab the source code and load it.
What @ysb33r is proposing would work great for the use case I'm thinking of.
Sweet!
R. Tyler Croy
@rtyler
Mar 29 2016 23:37
@ysb33r you should write something up for jrubygradle.org for that winkwinknudgenudge
Dan Allen
@mojavelinux
Mar 29 2016 23:37
I'll integrate into the sample Gradle project I'm setting up for generating a Bespoke.js presentation.
I managed to dig out that old Gist of mine
Dan Allen
@mojavelinux
Mar 29 2016 23:40
Cool!