Dependency on existing local Gradle project

I have a Gradle project that depends on an open source library that is packaged by its maintaner. Now there are some long(ish) standing bugs I would like to fix. Is it possible to use my local forked copy of the library in the meantime before a fixed version is released? The library is a Gradle project with multiple modules.

Is it possible to use my copy without messing with things like my own Maven repository? The question is basically the same as this one, but that did not receive any answer.

You can publish the library locally and consume it using something like maven-publish and mavenLocal() repository (if build system is Gradle). Another option would be if it is a “standard” Gradle project then you could try to use composite builds

Thanks. Composite builds seem to be exactly what I need.