Hi folks, I am working on a jRuby project and I would like to package a local gem (jruby source code) as a .jar file. I have done this successfully using the warbler gem, but I was wondering if there is a way to do that using the jruby-gradle plugin. As it is, I am using a jrubyExec task to run the warble script, but that is obviously not ideal.
Thanks! I intend to use something like 'java -cp ... JarMain' with JarMain defined in the jar from a script, but if there is a better way I'm open to it. The reason I want to do that is I have a jar from an external party that needs to be on the classpath.
I'm currently using gradle to build artifact jars that contain just jRuby and all of my gem and jar dependencies.
My actual Ruby code sits on the filesystem.
then I have one wrapper script that uses java with the artifact jar as the classpath to run jruby for a specific .rb file, and another that runs jruby with the -S parameter to run gem scripts (e.g. irb, rspec, puma, etc)