Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

should I put the jar dependencies on the shared repo or just the source files?

We have a Scala project with few source files (in Scala and Java) and quite some dependencies in various binary formats (jar and DLL). I'm wondering what should go into our shared git repo. Only the source files (developers have to download or somehow resolve the dependencies themselves) or the both the source files and the dependencies? I may add that dependencies are all third parties and available for download for free.

like image 323
Ashkan Kh. Nazary Avatar asked Dec 02 '22 03:12

Ashkan Kh. Nazary


2 Answers

We prefer to store .jar files in the same repository because

  • they are updated very seldom, so the overhead for old libraries is not much
  • we prefer self-contained bundles and don't want to set up an own Maven server
like image 111
Mot Avatar answered Dec 18 '22 09:12

Mot


I would really recommend to not include jar and dll in a Git repo: it will make said repo quite big quickly, and the future git clone won't be as easy to do as with a simple source repository (as in "no binaries").

I would set up a Nexus repo, and manage your dependencies through sbt.

like image 39
VonC Avatar answered Dec 18 '22 09:12

VonC