1

In my rails application I need to write some custom Java classes, so just wondering if there's any guidelines/best practice on how to structure the project repository? I mean like rails have a default directory structure in place, like app, models etc..., what should be the best place for my custom Java code?

1
  • I use ext/, much as a Rubygem with a C extension would. Commented Apr 29, 2015 at 8:26

1 Answer 1

1

I don't think there's a standard recommended practice, but there are a few options:

  • ruby-maven provides a DSL and a set of Rake plugins to build Java code the Maven way.
  • jruby-gradle-plugin provides similar support for the Gradle build tool.
  • For managing dependency libraries, there's also jar-dependencies.

If you're going to start writing Java/JVM code to go with your app, you'll probably need to integrate with the rest of the Java ecosystem at some point, and these tools are designed to support that.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.