Azure Functions Gradle Plugin - microsoft/azure-maven-plugins GitHub Wiki
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)