É possível escrever uma função usando o Micronaut e implantá-la em Java com o suporte das funções do Cloud Run para Micronaut. Para mais detalhes, consulte a
documentação do Micronaut (em inglês).
Quarkus
É possível gravar uma função com
o Quarkus e implantá-la nas funções do Cloud Run usando o suporte do Cloud Functions no Quarkus. Para saber
mais, consulte a documentação do Quarkus (em inglês).
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-05-30 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)."]]