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
gradle azureFunctionsPackage
Step 3: run This step is to prepare your staging folder (equals to mvn package
).
gradle azureFunctionsRun
Step 4: run Test local run behavior like maven functions plugin(equals to mvn azure-functions:run
)
gradle azureFunctionsDeploy
Step 5: run Test local deploy behavior like maven functions plugin(equals to mvn azure-functions:deploy
)