Re: [jruby-user] Re: How to use custom class files in Rails?
christian <[email protected]> Mon, 10 Nov 2014 12:03:24 +0000
| Newsgroups | gmane.comp.lang.jruby.user |
|---|---|
| Message-ID | <CAMV7UWHdKnBkFxnTPWTR8NvHqKBsphvL6dYbVpHWe3VkyqT8xw@mail.gmail.com> |
using ruby-maven (gem install ruby-maven) like this: create Mavenfile (you can use the same notation as with Jarfile from jbundler for your jar dependencies): jar 'org.slf4j:slf4j-simple', '1.6.4' plugin :jar, :outputDirectory => 'lib' now create your java code in src/main/java and compile and package it with $ rmvn package ruby-maven just uses a ruby dsl and translates it into a pom.xml and execute proper maven. - christian