I'm starting a new project in Scala that heavily depends on source files in another Java project. At first I thought about creating a new package/module in that project, but that seemed messy. However, I don't want to duplicate the Java code in my new project. The best solution I came up with is to reference the Java project through an svn external dependancy. Another solution is creating a jar file from the original, I would attach it as a library to the new Scala project. However, this makes keeping up-to-date more inconvenient. Which route is better?
SVN external:
- Easy to update
- Easy to commit
- Inconvenient setup
Jar file as library:
- Easy to setup
- Old code isn't in active development(stable, bug fixes only)
- Multi-step update
- Need to open old project to make changes