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

20th
Oct 2015
Jeremy Deininger
@jeremyd
Oct 20 2015 01:53
tried it with the self-executing jar, still same probs .. going to just get back to the basics and see if i can load it with jruby+thejar+mycode heh
R. Tyler Croy
@rtyler
Oct 20 2015 02:03
@jeremyd the configuration would be a Gradle configuration defined somewhere which has your dependencies
Jeremy Deininger
@jeremyd
Oct 20 2015 02:09
@rtyler do you see anything wrong with this gist? just trying to load up the amazon libs..
I seem to keep getting this missing class error, no matter what i try..
R. Tyler Croy
@rtyler
Oct 20 2015 02:10
@jeremyd lemme fork right quick
actually, dinner just got placed on the table, gimme 30
Jeremy Deininger
@jeremyd
Oct 20 2015 02:13
cool cool
R. Tyler Croy
@rtyler
Oct 20 2015 02:39
alright so there's a couple options here
@jeremyd personally I recommend option B
Jeremy Deininger
@jeremyd
Oct 20 2015 02:53
@rtyler ah ok, i'll try that
R. Tyler Croy
@rtyler
Oct 20 2015 02:54
basically a "JRubyJar" is a "fat jar" which means it allows you to embed all the dependencies inside of it
I'm assuming your end goal is to have a redistributable piece of code, which makes the JRubyExec option somewhat of a nonstarter
Jeremy Deininger
@jeremyd
Oct 20 2015 02:55
huh, i still get the missing class name error..
im pretty sure im using the right import.. but im starting to wonder if this is just aws lib weirdness
i tried both options @rtyler
R. Tyler Croy
@rtyler
Oct 20 2015 02:56
gist me the current build.gradle plz
i also tried option b, where runtime/jrubyJar
R. Tyler Croy
@rtyler
Oct 20 2015 02:58
running locally plz hold
I was shooting from the hip earlier
Jeremy Deininger
@jeremyd
Oct 20 2015 02:59
im trying to do something similar to https://github.com/kickstarter/telekinesis ; but with gradle
R. Tyler Croy
@rtyler
Oct 20 2015 02:59
DOWNLOAD ALL THE THINGS
Jeremy Deininger
@jeremyd
Oct 20 2015 02:59
yeah it definately downloads all the things :)
R. Tyler Croy
@rtyler
Oct 20 2015 03:00
such is the JVM-based ecosystem
Jeremy Deininger
@jeremyd
Oct 20 2015 03:00
R. Tyler Croy
@rtyler
Oct 20 2015 03:01
hah
this works for me dude
➜ libs java -jar jeremyd-repro-jruby.jar
➜ libs
rm -rf build
try a clean build, it might not be rebuilding
you can tell if it says "jrubyJar UP-TO-DATE"
that means it's not rebuilding the jar because it's already there
Jeremy Deininger
@jeremyd
Oct 20 2015 03:02
ah ok; trying that
ok yeah! that works
ok suhweet, thanks, i think i got it now.. w00t
R. Tyler Croy
@rtyler
Oct 20 2015 03:02
one thing to keep in mind with Gradle
it uses task dependencies and inputs/outputs to do incremental builds if possible
which sometimes means it doesn't "just know" that the change you may ahve made to a configuration in the build.gradle will result in a differently produced artiface
artifact*
Jeremy Deininger
@jeremyd
Oct 20 2015 03:03
gotcha
R. Tyler Croy
@rtyler
Oct 20 2015 03:03
time to walk the dawg
literally, womp womp
Jeremy Deininger
@jeremyd
Oct 20 2015 03:03
haha, have fun, thx again for the halp
Christian Meier
@mkristian
Oct 20 2015 07:10
@rtyler hi, I just read your initial gist regarding the classpath that is really a bug if needed. in contrary it can lead to subtle classloader problems. jrubyExec will load all the jar dependencies via -r jars/setup into the jruby-classloader. i.e. whether you use a fat jruby jar or jrubyExec it should behave the same from the point of view of JRuby.
R. Tyler Croy
@rtyler
Oct 20 2015 14:54
@mkristian if the user doesn't place dependencies in the right configuration, then obviously the exec won't work
Christian Meier
@mkristian
Oct 20 2015 16:18
isn't the right way to do it configuretion 'rspec' inside the task ? adding it to the classpath is just picking the wrong classloader and has different loading semantic then running the SAME from a fat jar
R. Tyler Croy
@rtyler
Oct 20 2015 16:44
ah, yeah, sure
Schalk W. Cronjé
@ysb33r
Oct 20 2015 17:46
@rtyler Preview doc of Gradle book will be up on Leanpub shortly
R. Tyler Croy
@rtyler
Oct 20 2015 17:47
woohoo!
Schalk W. Cronjé
@ysb33r
Oct 20 2015 18:51
R. Tyler Croy
@rtyler
Oct 20 2015 20:04
@ysb33r that appears to be the case
Schalk W. Cronjé
@ysb33r
Oct 20 2015 20:07
:+1:
R. Tyler Croy
@rtyler
Oct 20 2015 20:17
@ysb33r well, I've not been able to complete a full download yet >_<
can't tell if it is me or the site
Schalk W. Cronjé
@ysb33r
Oct 20 2015 20:18
you ...
i’ve managed to download
maybe you need to be logged in to download
R. Tyler Croy
@rtyler
Oct 20 2015 20:22
I think this is on my side