What is the best way to create a JRuby JAR file that contains the compiled JRuby code to be used in a larger Java application, especially with Maven. It seems that most of the uses of JRuby are creating applications at the top of the stack and integrating old Java code. Therefore, most of the documentation and resources involved creating WAR files and stand-alone JARs. Both warblerand rawrbuild standalone JAR.
We need to pick up JRuby a little differently in the middle of the stack, so I want to create reusable JAR files that can be loaded into Maven's internal repository and use them as dependencies just like with any Java code. There is not much documentation on how to do this, and I just came up with:
- Write a Rake task to
jrubyccompile JRuby files and write them to a JAR file - Try making something like
buildror gradleto make packaging
Has anyone done this before? Any recommendations on what approach I should take or better approach? Thank.
source
share