plugins { id 'java' id 'io.spring.dependency-management' version '1.1.0' id "com.microsoft.azure.azurefunctions" version "1.11.0" } apply plugin: 'java' apply plugin: "com.microsoft.azure.azurefunctions" group = 'org.scf.azure' version = '0.0.1-SNAPSHOT' java { sourceCompatibility = '17' targetCompatibility = '17' toolchain { languageVersion = JavaLanguageVersion.of(17) } } jar { manifest { attributes( // The main class is compulsory. Set it to point your SpringBootApplication. "Main-Class": "org.scf.azure.gradle.GradleDemoApplication" ) } } repositories { mavenLocal() mavenCentral() } dependencies { implementation 'org.springframework.boot:spring-boot-starter' implementation "org.springframework.cloud:spring-cloud-function-adapter-azure:4.1.0-SNAPSHOT" } tasks.named('test') { useJUnitPlatform() } // Configuration options: https://github.com/microsoft/azure-gradle-plugins/wiki/Configuration azurefunctions { resourceGroup = 'java-functions-group' appName = 'scff-azure-gradle-sample' region = 'westus' appServicePlanName = 'java-functions-app-service-plan' pricingTier = 'EP1' runtime { os = 'linux' javaVersion = '11' } auth { type = 'azure_cli' } appSettings { FUNCTIONS_EXTENSION_VERSION = '~4' } localDebug = "transport=dt_socket,server=y,suspend=n,address=5005" }