To facilitate deployment across platforms, you can use Gradle tasks and plugins. Gradle supports different plugins to deploy to Kubernetes, OpenShift, GCP, and deploy as Aws Lambda.
Here you could find examples for Quarkus and Micronaut frameworks 🤗 :
Gradle plugin for deploying to Kubernetes/Openshift and to Aws Lambda: k8s_aws_plugin