I have an elixir project with a defined version. How can I access this from within the running application.
in mix.exs
def project do [app: :my_app
Application.spec(:my_app, :vsn) works when the application is started. If you're in a Mix task and you don't need to start the application, in Elixir 1.8 you can use:
Application.spec(:my_app, :vsn)
MyApp.MixProject.project |> Keyword.fetch!(:version)