Embed a library in the sketch

Hi,
after some years I was continuing an old project that has many libraries, somehow I lost some and others once upgraded broke the code.
Is there a way to put the library inside the sketch folder so the code is self consistent and independent of other installed libraries?

Thanks

Yes. Simply put the library files in the same folder as the sketch and use

#include "theLibrary.h"

instead of

#include <theLibrary.h>

This will cause the compiler to look for the library file in the local directory before looking for it in the normal library search path