Building and managing dependencies
Cloud Functions supports two ways to manage dependencies: automatic installation using
Maven and manual delivery of dependencies along with the source code.
Maven is a system for managing dependencies in
To deliver dependencies using
Maven, just upload your own
Maven project by configuring dependencies in
pom.xml. No other actions are required.
If you want to set the order of loading dependencies, upload a file named
classpath.txt to the project root. This file lists the dependencies one by one in the required order.
Make sure the project archive root contains the
Manual delivery of dependencies
To configure dependencies manually, place the
jar archives of the necessary libraries in the root of the project archive.
The process of installing dependencies has resource and execution time limits. For more information, see Quotas and limits. You can view the dependency installation log using the link that appears in the list of operations.