首页 > 解决方案 > 使用 Gradle 将 Spring Boot JAR 部署到 Azure Web 服务

问题描述

我更喜欢在 Spring Boot 中使用 gradle。我找到了有关使用 Azure App Service Web Apps 的 Maven 插件部署到 Azure 的资源。将如何采用 gradle 作为构建系统的方法?

标签: springazurespring-boot

解决方案


那么你需要分开部署和构建。

您可以使用 Azure 构建管道任务来构建gradle

作为该构建的一部分,您可以创建包含您的应用程序的工件

然后创建将 jars 部署到 azure app 服务的版本


推荐阅读