Azure / azure-functions-java-worker

Java runtime and core types for Microsoft Azure Functions
MIT License
89 stars 54 forks source link

Loading Jar-files from /lib in the function app root #54

Closed christopheranderson closed 6 years ago

christopheranderson commented 6 years ago

From @kevinhillinger on February 5, 2018 18:0

Feature request to support jar files being loaded from a lib folder in function app root, so that fat jars are not required.

This is cross-referencing this issue in the azure-functions-java-worker repo.

Copied from original issue: Azure/azure-functions-host#2382

dsyer commented 6 years ago

fat jars are not required.

I guess it's a matter of terminology, more than anything then? To deploy a function I have to upload an archive that contains a lib folder that contains jar files. Sounds like a fat jar to me.

Could the location of the "lib" directory be configurable please? Spring Boot apps, for instance, would put them at BOOT-INF/lib.

kevinhillinger commented 6 years ago

@dsyer lib is a directory residing in the function app's root directory, not packaged in the jar.

in the README, there's a section for dependencies. The Maven plugin is copying all dependent jars (which you have control over using this plugin) to the function app's directory.

Hope that helps.

JunyiYi commented 6 years ago

Code has been checked in. And let me close this feature request after the changeset is published to Azure.

JunyiYi commented 6 years ago

Supported in #50.