0

Now that we can develop google cloud functions with java runtime (or Scala or Groovy). Anybody using android studio to develop google cloud function using android studio?

  • If you have a standard build.gradle please post.
  • Is there a way to auto create pom.xml from gradle build.
  • can we provision cloud function from within android studio.
Bakavani
  • 101
  • 5

1 Answers1

1

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

Ralemos
  • 5,571
  • 2
  • 9
  • 18
  • @Bakavani Do you find the answer above helpful? – Wytrzymały Wiktor Dec 22 '20 at 14:27
  • Thank you @Rafael, I did read the functions docs, my intention of asking for a standard build.gradle is if someone has written a build.gradle that generates pom.xml or as part of build process generates shaded jar (or with manifest) file that can be provisioned on cloud easily :) I'll try the archiveTask approach when I get some time and update. – Bakavani Dec 25 '20 at 09:43
  • 1
    Ok @Bakavani, once you get the time to test the proposed approach, and if it works, please remember to mark the answer as accepted so that others in the community can refer to this answer if they have a similar case to yours. – Ralemos Dec 28 '20 at 14:25