I am currently developing and maintaining an R package that contains several .jar files as dependencies. I am struggling to find an efficient git workflow for the project.
We have 3 environments in our development cycle: dev, stage, and prod. I'd like to organize these environments as git branches, wherein new features are first developed on the dev branch and promoted "upstream" via pull requests to stage and then ultimately prod . Changes to the prod branch will be continuously integrated with RStudio Package Manager, and distributed from there.
The problem that I am facing is in dealing with the .jar file dependencies. The .jar files are also in development alongside of the R code. My understanding is that git doesn't handle diffs or merges of binary files very well. Yet, I need a good way to keep the dev, stage, and prod versions of the .jar files in sync with the corresponding branches of the R package. I am wondering, had anyone developed or know of a best practice for a situation like this?