Publish to local maven

I have a gradle module that I need to publish to my local maven repo. So I use the maven-publish plugin.
My problem that my module have dependencies on local files. These file are not added to the jar in local maven repo and also not present in the pom file.

How do I get my file dependencies into the jar/pom?

A common approach is to put the files in src/main/resources so they are packed inside the jar. They can then be accessed via the classloader at runtime