Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex Cloud Functions
  • Comparing with other Yandex Cloud services
    • Overview
    • Managing dependencies
    • Request handler
    • Invocation context
    • Logging
    • Error handling
    • Using the SDK
  • Tools
  • Pricing policy
  • Access management
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Public materials
  • Release notes
  • FAQ

In this article:

  • Maven
  • Manual delivery of dependencies
  • Recommended versions of Java libraries
  1. Developing in Java
  2. Managing dependencies

Building and managing Java function dependencies

Written by
Yandex Cloud
Improved by
Mikhail C.
Updated at July 2, 2026
View in Markdown
  • Maven
  • Manual delivery of dependencies
  • Recommended versions of Java libraries

Cloud Functions supports two methods of managing Java function dependencies: automatic installation from the source code using Maven and adding dependencies manually to a project archive. However, you cannot configure dependencies using both methods at the same time.

Dependency installation is limited in terms of resources and execution time. For more information, see Quotas and limits in Cloud Functions. You can view the dependency installation log via the link displayed in the list of operations.

MavenMaven

Maven is a dependency management system for Java.

To deliver dependencies, configure them in the pom.xml file. No other steps, including project compilation, are required.

To set the dependency loading order, upload a file named classpath.txt to the project root. This file must list the dependencies line by line in the required order.

Warning

Make sure the project archive root contains pom.xml.

Manual delivery of dependenciesManual delivery of dependencies

To configure dependencies manually, place the JAR archives of the required libraries in the project archive root. Example:

build.zip
+--org
+----package
+------Main.java
+--dependency.jar

Recommended versions of Java librariesRecommended versions of Java libraries

Java 11

Java 17, Java 21

Spring Boot

2.3.4.RELEASE

2.5.14

Spring Framework

5.2.9.RELEASE

5.3.24

javax.servlet

4.0.1

4.0.1

Warning

Functions may not work correctly with other versions of the libraries.

Was the article helpful?

Previous
Spring Boot
Next
Request handler
© 2026 Direct Cursus Technology L.L.C.