use of com.microsoft.azure.gradle.functions.handlers.AnnotationHandler in project azure-gradle-plugins by lenala.
the class PackageTask method packageFunction.
@TaskAction
void packageFunction() {
try {
final AnnotationHandler handler = getAnnotationHandler();
final Set<Method> methods = findAnnotatedMethods(handler);
final Map<String, FunctionConfiguration> configMap = getFunctionConfigurations(handler, methods);
validateFunctionConfigurations(configMap);
final ObjectWriter objectWriter = getObjectWriter();
writeEmptyHostJsonFile(objectWriter);
copyLocalSettingsJson();
writeFunctionJsonFiles(objectWriter, configMap);
copyJarsToStageDirectory();
getLogger().quiet(BUILD_SUCCESS);
} catch (Exception ex) {
throw new TaskExecutionException(this, ex);
}
}
Aggregations