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

19th
Oct 2015
Schalk W. Cronjé
@ysb33r
Oct 19 2015 09:35
@rtyler That JrubyJar example fails when used outside
Schalk W. Cronjé
@ysb33r
Oct 19 2015 09:53
No such property: DEFAULT_JRUBYEXEC_CONFIG for class: com.github.jrubygradle.internal.JRubyExecUtils
R. Tyler Croy
@rtyler
Oct 19 2015 14:28
o_O
really
Schalk W. Cronjé
@ysb33r
Oct 19 2015 14:34
No panic yet, when I eas on the train I might have found the cause. Have not tested it yet, but I noticed there was an older version the plugin in myroot project.
Too late for me to change now, 2h to go to talk and I have a meeting coming up in between
R. Tyler Croy
@rtyler
Oct 19 2015 14:42
@ysb33r okay, I hope it's not a present regression :/
Schalk W. Cronjé
@ysb33r
Oct 19 2015 16:09
OK. That seems to be the problem. Meeting finished earlier. Have some time to investigate in a coffee shop.
Prezzo went very well as far as I could see - no demo failures. Little Jruby snippet in there. Bearing in mind this was pitched at people who mostly do not use Gradle, but would like to know more about it.
R. Tyler Croy
@rtyler
Oct 19 2015 22:21
great!
I've already got the slides open
Jeremy Deininger
@jeremyd
Oct 19 2015 22:59
wish i had some examples of loading actual jars (and not just gems) into a jruby-gradle project..
for some reason, having way too hard a time doing that heh.. it downloads em, but jruby can't java_import them
do you have to require "path/to/jar" in the jruby script, for it to load them?
R. Tyler Croy
@rtyler
Oct 19 2015 23:00
it depends on how the Ruby is being executed
Jeremy Deininger
@jeremyd
Oct 19 2015 23:01
with JRubyExec
R. Tyler Croy
@rtyler
Oct 19 2015 23:01
if you're using a self-executing jar, the load path and everything should already be set up and coordinated for you
for jrubyexec the classpath needs to be set, let me dig up an example
Jeremy Deininger
@jeremyd
Oct 19 2015 23:02
ah, maybe i should give the self-executing jar a try then.. whatever works
R. Tyler Croy
@rtyler
Oct 19 2015 23:02
jrubyexec is fine
that's really it, that's a property inherited from JavaExec
that will ensure that the things in that configuration are on the classpath for the spawned VJM
anyways, I have to bounce, I'll be online much later :)
Jeremy Deininger
@jeremyd
Oct 19 2015 23:20
sweet thx!
where does the configuration.rpsec come from?
say, im executing someruby.rb, .. what would configuration.<?> be
Jeremy Deininger
@jeremyd
Oct 19 2015 23:27
er, configurations.<notsure what this should be, project name? script name?>