You can create a target/deployment directory within each module that contains a thin jar of the code of that module, plus the dependencies of that module, then invoke gcloud functions deploy with --source=modulename/target/deployment.
Check out the documentation for Build and deploy a thin JAR with external dependencies for the pom.xml adjustments needed.