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

23rd
Sep 2015
Christian Meier
@mkristian
Sep 23 2015 08:55
hmm. no problems on my machine
R. Tyler Croy
@rtyler
Sep 23 2015 13:25
damn
R. Tyler Croy
@rtyler
Sep 23 2015 13:53
I wonder if this has something to do with the memory constrained environment on the builders again
R. Tyler Croy
@rtyler
Sep 23 2015 14:30
@mkristian well since you can't reproduce the error locally, no sense worrying about it for now
when I get to the office I'm going to experiment a bit more with it
@mkristian unrelated, gems shouldn't be checking in those _jars.rb files anymore should they?
R. Tyler Croy
@rtyler
Sep 23 2015 18:01
so the .jrubydir generation stuff, if I'm understanding how the shadow plugin works, will require some usage of gradle internals to implement
rtyler @rtyler vomits
R. Tyler Croy
@rtyler
Sep 23 2015 18:02
or we might be able to make a two pass approach, let the Jar get packed, then on a second pass use ZipFile and modify after it's already been written to disk
rtyler @rtyler investigates whether ZipFile can modify a zip
R. Tyler Croy
@rtyler
Sep 23 2015 18:04
or perhaps shrinkwrap will allow it, looks like the standard ZipFile doesn't allow mods
Christian Meier
@mkristian
Sep 23 2015 19:30
@rtyler I am on the way to the UK so to say. those _jars.rb needs to be bundled as maven or gradle do not generate those files on install, even if it is not used.
@rtyler the maven approach is to copy first everything into target/classes, there the .jrubydir files get generated and the all goes into a jar. maybe the first pass is to copy things.
another idea I had was to use the copy-specs from jar-task, make a "fake" copy (i.e. copy to /dev/null or so), collect the data for the .jrubydir files, generate them and pack everything
but nothing sounds straight forward.
parsing a zipfile and then modify it, sounds actually quite nice.
R. Tyler Croy
@rtyler
Sep 23 2015 20:10
@mkristian regarding the _jars.rb file, now I remember, we removed it from fast-rsa-engine but added it to the gemspec
I'll make that change in the hermann gem while I'm futzing around with things