Most of this information is already available in the Cloud Functions documentation.
There is a tutotial, available here, that offers an example build.gradle
for a sample project, you can build on top of that one for your project's needs.
According to this community answer, you can use the archiveTask
task in the Maven Plugin so that a pom.xml
file is generated and stored in the <buildDir>/poms
directory of your project.
Unfortunately this is not possible. As you can see in this documentation:
You can deploy Cloud Functions from your local machine, from your GitHub or Bitbucket source repository (via Cloud Source Repositories), or from the Cloud Functions API directly.
NOTE: For deployment from the local machine if you follow through the referring documentation you will see that this only applies to a deploy using the gcloud command-line tool