Multiproject begginer help

Hi, I am a begginer to gradle and I would like to get some clarification in a specific problem.
I have a java maven multiproject, that depends on two native libraries, linked with jars.
Then, I want to include such maven multiproject inside a java gradle multiproject, more specifically inside one of the subprojects:

xxxxxxx|—Native libs (jar)

For now I am trying to compile JavaMavenProject and include the jar file using:
dependencies { implementation files(/local/path/to/jar) }
but I am having problems with the native libs, which are also jar linked at execution time.

I really would appreaciate any suggestion on how could be a nice approach to solve this problem. Thanks in advance.