If you are creating a new function, see the Console Quickstart on Cloud Run. The content on this page only applies to existing legacy functions created with the Cloud Functions v1 API.
You can write a function using Micronaut, and deploy it to Java using Micronaut's
Cloud Run functions support. For details, see the
Micronaut documentation.
Quarkus
You can write a function using
Quarkus, and deploy it to
Cloud Run functions using Quarkus Cloud Run functions support. For
details, see the Quarkus documentation.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eSeveral Java frameworks, including Micronaut, Spring Cloud Run, and Quarkus, offer built-in support for creating Cloud Run functions.\u003c/p\u003e\n"],["\u003cp\u003eThese frameworks allow developers to build both HTTP and event-driven functions using their established programming models.\u003c/p\u003e\n"],["\u003cp\u003eThe frameworks leverage dependency injection to create a more modular codebase.\u003c/p\u003e\n"],["\u003cp\u003eSpring cloud functions, Micronaut, and Quarkus have detailed documentation to guide developers when building with their framework.\u003c/p\u003e\n"]]],[],null,["# Java Frameworks\n===============\n\nIn addition to [Functions Framework for Java](https://github.com/GoogleCloudPlatform/functions-framework-java), the [Micronaut framework](https://micronaut-projects.github.io/micronaut-gcp/2.0.x/guide/#simpleFunctions), [Spring\nCloud Run function project](https://spring.io/projects/spring-cloud-function), and [Quarkus](https://quarkus.io/guides/gcp-functions) now\nhave out-of-the-box support for Cloud Run functions. You can create both HTTP\nand event-driven functions using the frameworks' programming models, including\ncapabilities such as dependency injection.\n\nSpring Cloud Run functions\n--------------------------\n\nYou can write a function using [Spring Cloud Run functions](https://spring.io/projects/spring-cloud-function#overview), and deploy it to Java using the\nCloud Run functions adapter. For details, see the\n[Spring Cloud documentation](https://docs.spring.io/spring-cloud-function/docs/current/reference/html/spring-cloud-function.html). Also see the [Spring Cloud Run functions sample](https://github.com/spring-cloud/spring-cloud-function/tree/master/spring-cloud-function-samples/function-sample-gcp-http/).\n\nMicronaut\n---------\n\nYou can write a function using [Micronaut](https://micronaut-projects.github.io/micronaut-gcp/2.0.x/guide/#introduction), and deploy it to Java using Micronaut's\nCloud Run functions support. For details, see the\n[Micronaut documentation](https://micronaut-projects.github.io/micronaut-gcp/2.0.x/guide/#cloudFunction).\n\nQuarkus\n-------\n\nYou can write a function using\n[Quarkus](https://quarkus.io/), and deploy it to\nCloud Run functions using Quarkus Cloud Run functions support. For\ndetails, see the [Quarkus documentation](https://quarkus.io/guides/gcp-functions)."]]