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

20th
Sep 2014
Schalk W. Cronjé
@ysb33r
Sep 20 2014 00:18
Schalk W. Cronjé
@ysb33r
Sep 20 2014 09:07
I managed to achieve this without using warbler-bootstrap. The plugins generates a bootstrap class on the fly, compiles it, and includes it in the jar
R. Tyler Croy
@rtyler
Sep 20 2014 17:05
@ysb33r this does sound very promising, are you waiting on a code review from me or something?
Schalk W. Cronjé
@ysb33r
Sep 20 2014 17:07
I am not sure yet whether to merge it to master or play some with it. I know it works for pulling in a bunch of gems and then running a script from the bin directory. I actually got asciidoctor to work that way.
I am not sure yet, how it would stand up to some other projects
like your blick project
But I guess any ruby that does not use native components and can be copied to the gemInstallDir will probably work
I am thinking too of maybe adding in some system properties which allow a person to override behaviour when the jar itself is run i.e. change the compatibility mode, maybe run another script inside
etc...
do you want to give it a go, or do you think I should just merge a first version?
R. Tyler Croy
@rtyler
Sep 20 2014 17:41
I think you should just merge the final version
this is effectively how warbler executable jars works
specifying an entrypoint script is easy enough
I do like something the executable war support in Warbler does via WarMain for executing a Ruby script defined in a gem via the -S command, e.g. java -jar my.war -S rake selfcheck
Schalk W. Cronjé
@ysb33r
Sep 20 2014 18:15
I think there is quite a bit of difference between JarMain & WarMain in warbler
R. Tyler Croy
@rtyler
Sep 20 2014 20:49
oh yeah there definitely is
WarMain needs some work, if shadow does the job, let's just use that since somebody is clearly maintaining it
Schalk W. Cronjé
@ysb33r
Sep 20 2014 20:54
i thought WarMain was the more mature one
R. Tyler Croy
@rtyler
Sep 20 2014 21:36
er, I mispoke
I meant JarMain
Schalk W. Cronjé
@ysb33r
Sep 20 2014 21:56
OK, let’s give it a go. If people start using it, we’ll soon find out if it’s useful
R. Tyler Croy
@rtyler
Sep 20 2014 22:12
I can probably start testing it with some Lookout specific stuff this week
with Puppetconf this week, it could be tight though
then JavaOne next week >_<
BUT! I get to tell people about the jruby-gradle project in my JavaOne panel, so that will be fune
fun*
Schalk W. Cronjé
@ysb33r
Sep 20 2014 22:13
you’re at JavaOne? Nice! Say hi to Andres Almiray for me.
Schalk W. Cronjé
@ysb33r
Sep 20 2014 22:17
Fun! I wonder who is in the Groovy camp
I guess Cedric, Guillame will bethere
I guess @headius will be there for JRuby too
R. Tyler Croy
@rtyler
Sep 20 2014 22:27
he's in a different session
which is why I'm in the @JRuby one :P
er, the script bowl
Schalk W. Cronjé
@ysb33r
Sep 20 2014 22:28
i c
btw r u into (american) football?
R. Tyler Croy
@rtyler
Sep 20 2014 22:30
I enjoy watching it with my parents, I don't have a TV in my house which makes it far less enjoyable :P
Schalk W. Cronjé
@ysb33r
Sep 20 2014 22:30
I’m watching the Florida-Alabama college game atm
R. Tyler Croy
@rtyler
Sep 20 2014 22:31
that's a great game to watch, I'm certain my step-dad is watching it now
he's a Gator :D
Schalk W. Cronjé
@ysb33r
Sep 20 2014 22:31
he might not be enjoying it … 21-35 atm
R. Tyler Croy
@rtyler
Sep 20 2014 22:32
ruhroh
I created jruby-gradle/jruby-gradle-jar-plugin#8 to get @buildhive to test it