Java Frameworks

In addition to Functions Framework for Java, the Micronaut framework, Spring Cloud Run function project, and Quarkus now have out-of-the-box support for Cloud Run functions. You can create both HTTP and event-driven functions using the frameworks' programming models, including capabilities such as dependency injection.

Spring Cloud Run functions

You can write a function using Spring Cloud Run functions, and deploy it to Java using the Cloud Run functions adapter. For details, see the Spring Cloud documentation. Also see the Spring Cloud Run functions sample.

Micronaut

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.