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

9th
Apr 2015
R. Tyler Croy
@rtyler
Apr 09 2015 04:55
@ysb33r since your flight is delayed, you lurking?
Schalk W. Cronjé
@ysb33r
Apr 09 2015 11:39
nope, we were boarded and parked off-gate for about 70min.
R. Tyler Croy
@rtyler
Apr 09 2015 14:11
ouch
@ysb33r I was disappointed to learn that JavaExec doesn't allow closures in scriptArgs
I'd love to find a better, more well known way to accomplish what I'm trying to accomplish but I couldn't find anything
R. Tyler Croy
@rtyler
Apr 09 2015 14:36
damnit #101 has reared its head in my project
I didn't previously have a reproduction case :/
Schalk W. Cronjé
@ysb33r
Apr 09 2015 15:14
What are you trying to do with scriptArgs?
R. Tyler Croy
@rtyler
Apr 09 2015 15:44
so I need to call gem build in my gradle scripts
and then do something with the resulting output
the problem is you can't know the output from gem build until you execute it
so I have to lazily evaluate scriptArgs with a closure that "finds" the gem that was built
R. Tyler Croy
@rtyler
Apr 09 2015 16:01
@ysb33r for #101 the only thing that comes to mind is 4910409b36d1cc48e90c108c5be7c7f336de2818
Allow for lazy evaluation in jruby.gemInstallDir. Changed default to buildDir/gems away from buildDir/vendir/gems
R. Tyler Croy
@rtyler
Apr 09 2015 16:08
yeah, isolated it to that change
but I'm not sure why that change causes problems yet
R. Tyler Croy
@rtyler
Apr 09 2015 17:20
it looks like using defaultGems() in the shadow jar configuration anyways
R. Tyler Croy
@rtyler
Apr 09 2015 17:49
ah ha! jruby.gemInstallDir is just wrong
it's $buildDir instead of $buildDir/vendor
er, $buildDir/gems
R. Tyler Croy
@rtyler
Apr 09 2015 18:58
@ysb33r I'm going to release a change that defaults to this, okay?
Schalk W. Cronjé
@ysb33r
Apr 09 2015 22:32
jruby.gemINstallDIr was set to buildDir as per a specific issue by @mojavelinux .
It then automatically creates gems dir underneath it as part of the gem install
R. Tyler Croy
@rtyler
Apr 09 2015 22:33
well, it also puts "specifications" and "doc" and everything else in that directory
Schalk W. Cronjé
@ysb33r
Apr 09 2015 22:34
then it’s wrong
R. Tyler Croy
@rtyler
Apr 09 2015 22:34
right, I figured that was a regression
Schalk W. Cronjé
@ysb33r
Apr 09 2015 22:34
it needs to put gems in a subfolder under buildDir
R. Tyler Croy
@rtyler
Apr 09 2015 22:34
AFAICT the desired intent was to have build/gems contain the full gem install output
Schalk W. Cronjé
@ysb33r
Apr 09 2015 22:34
i.e. gems/specifications, gems/bin etc.
R. Tyler Croy
@rtyler
Apr 09 2015 22:35
yeah
Schalk W. Cronjé
@ysb33r
Apr 09 2015 22:35
I might be non-sensical atm - just got back from speaker’s dinner and is pretty tired
R. Tyler Croy
@rtyler
Apr 09 2015 22:35
that's what is now in 0.1.14
hah
which country are you in
Schalk W. Cronjé
@ysb33r
Apr 09 2015 22:38
spain
AFAICT the desired intent was to have build/gems contain the full gem install output
That. Exactly that
R. Tyler Croy
@rtyler
Apr 09 2015 22:41
yeah, so we're good then, I think @mojavelinux's usecase is accounted for properly
I'm jealous, I wish I were in spain!
Schalk W. Cronjé
@ysb33r
Apr 09 2015 22:47
Andres Almiray is here too
R. Tyler Croy
@rtyler
Apr 09 2015 22:51
fancy
Schalk W. Cronjé
@ysb33r
Apr 09 2015 22:53
I’m going to sleep now. Early start for me tomorrow.
R. Tyler Croy
@rtyler
Apr 09 2015 22:56
toodles