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

17th
Apr 2015
Christian Meier
@mkristian
Apr 17 2015 13:38
the name "META-INF/init.rb" is a bit unfortunate. the jruby-rack uses this file and "WEB-INF/init.rb" to configure the application be it gets executed by just requiring them. so an executable war file can not use META-INF/init.rb since it gets required when jruby-rack boots the webapp
since jruby-rack uses these files as well warbler does the same, I did follow this pattern with jruby-mains.
to keep META-INF/init.rb as default start script might work with jars but will have probably undesirable effects on executable/runnable jars.
any thoughts ?
rtyler @rtyler has no thoughts
Christian Meier
@mkristian
Apr 17 2015 13:50
lucky you or peaceful you
R. Tyler Croy
@rtyler
Apr 17 2015 13:54
heh
Christian Meier
@mkristian
Apr 17 2015 13:54
a paeceful mind has no thoughts or so
R. Tyler Croy
@rtyler
Apr 17 2015 14:03
heh
Schalk W. Cronjé
@ysb33r
Apr 17 2015 14:12
I only chose init.rb as I thought it was the way it had to be done. Renming it to something else as the default would work for me.
Christian Meier
@mkristian
Apr 17 2015 14:51
renaming to something else would be helpful.
Schalk W. Cronjé
@ysb33r
Apr 17 2015 14:52
META-INF/mother-of-ice-cream.rb would not be a good idea
Christian Meier
@mkristian
Apr 17 2015 14:53
really !? what about using the file jruby uses: jar-bootstrap.rb
so we keep things similar across frameworks
or mother-of-dragons.rb
Schalk W. Cronjé
@ysb33r
Apr 17 2015 14:54
jar-bootstrap.rb works for me
Christian Meier
@mkristian
Apr 17 2015 14:54
cool
R. Tyler Croy
@rtyler
Apr 17 2015 15:20
if either of you are curious, I'm working on an abstraction to provide on top of tooling like jruby-gradle for developers (at Lookout primarily) to build services https://gist.github.com/rtyler/90ff7367968464c0c979
starting kind of with readme-driven development here to figure out what the right abstractions are
hopefully it's obvious why this would be useful/valuable from what's there, if it's not, I need to do some updating.
Christian Meier
@mkristian
Apr 17 2015 15:25
@rtyler this basically reuses the jruby-gradle-jar-plugin. puts the jar + some scripts into tar.gz - is that what you doing ?
R. Tyler Croy
@rtyler
Apr 17 2015 15:30
yeah
with as many appropriate defaults as possible
I think I need to build a simple jruby-gradle-rspec plugin which provides a simple little RSpec interface through Gradle