有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

将java应用程序(Azure函数应用程序)迁移到运行时3。x从2开始。GRADLE的x

microsoft提供了更新pom的文档。xml从运行时2迁移。x比3。x: https://docs.microsoft.com/en-us/azure/azure-functions/functions-versions

然而,我有一个java/gradle项目,我假设我需要在构建中更新一些东西。格雷德尔。。。。知道怎么做吗

应该有一个名为FUNCTIONS_EXTENSION_VERSION的属性,在为pom执行此操作时可以设置。xml,它是否与构建类似。格拉德尔


共 (1) 个答案

  1. # 1 楼答案

    目前,Azure Functions Gradle Plugin是预览版

    通过检查v3 pom文件,我看到FUNCTIONS_EXTENSION_VERSION被添加为应用程序设置:

    enter image description here

    根据官方教程:add build.gradle and settings.gradle to your azure function project

    您只需添加一个应用程序设置:

    azurefunctions {
        subscription = <your subscription ID>
        resourceGroup = 'java-functions-group'
        appName = 'fabrikam-functions-20191216104001380-01'
        pricingTier = 'Consumption'
        region = 'westus'
        runtime {
          os = 'windows'
        }
        appSettings {
            FUNCTIONS_EXTENSION_VERSION = '~3'
        }
    
        authentication {
            type = 'azure_cli' 
        }
        localDebug = "transport=dt_socket,server=y,suspend=n,address=5005"
        deployment {
            type = 'run_from_blob'
        }
    }