Skip to content

Azure Functions Gradle Plugin

Andy Xu(devdiv) edited this page Apr 23, 2020 · 3 revisions

As Azure Functions Plugin for Gradle is open-sourced, you can navigate here for more details

How to use Gradle plugin for Azure Functions

Prerequisites

  • Gradle 4.10+
  • Latest Function Core Tools
  • Azure CLI. This plugin use Azure CLI for authentication, please make sure you have Azure CLI installed and logged in.
az login
az account set -s <your subscription id>

Step 1: prepare you azure function project

git clone https://github.com/Azure-Samples/azure-functions-samples-java

Step 2: Package your jar

azure-functions-samples-java
gradle jar

Step 3: run gradle azureFunctionsPackage

This step is to prepare your staging folder (equals to mvn package).

Step 4: run gradle azureFunctionsRun

Test local run behavior like maven functions plugin(equals to mvn azure-functions:run)

Step 5: run gradle azureFunctionsDeploy

Test local deploy behavior like maven functions plugin(equals to mvn azure-functions:deploy)

Clone this wiki locally