I’m wondering if there’s a suggested pattern for using libraries in FRC Java builds. (I’m still trying to figure my way around Gradle and large Java projects.) Specifically, I’m talking about team-internal libraries that are kept separate from the year’s robot code. While playing around, I’ve gotten two different methods to work:
- Include libraries in the code repo as git submodules, and build the whole thing as a Gradle multi-project build;
- Build the libraries separately, push the .jar files to a Maven repo (Artifactory, in my case), and add that to the Gradle
Both seem to work. Without wishing to start a vi-vs-emacs-style holy war, is one of these methods clearly superior for including team libraries? Or, is the best way some other thing that I haven’t mentioned?