Android app + library project in separate repo

Hi,
I have two projects, an android app and android library project which are in separate repos. Locally they are build by checking them out at the same level in the same folder and the app referencing the library project in Gradle:

    include ':[NAME]'
    project(':[NAME]').projectDir = new File(settingsDir, '[DIR PATH]')

Currently we are thinking that we will need to host the library project binary on something like Jitpack and reference it as a dependency. However, I was wondering if it is possible to do something like above. Checkout both repos and have one reference the other from the .gradle file.

Thanks,

Clive