This commit is contained in:
Flanker-MSFT 2024-01-08 21:37:52 +08:00
Родитель 566bf31a67
Коммит 842d33b3d1
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -341,7 +341,7 @@ public class DeployHandler {
final FunctionAppConfig result = AppServiceConfig.buildDefaultFunctionConfig(resourceGroup, appName);
final org.gradle.api.JavaVersion localRuntime = org.gradle.api.JavaVersion.current();
final Runtime runtime = localRuntime.isCompatibleWith(org.gradle.api.JavaVersion.VERSION_17) ? FUNCTION_JAVA17 :
localRuntime.isJava11Compatible() ? FUNCTION_JAVA11: FUNCTION_JAVA8;
localRuntime.isJava11Compatible() ? FUNCTION_JAVA11 : FUNCTION_JAVA8;
result.runtime(new RuntimeConfig().os(runtime.getOperatingSystem()).javaVersion(runtime.getJavaVersionUserText()));
result.subscriptionId(subscriptionId);
return result;