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
Mix.Project itself provides access to all project keywords defined in mix.exs using its config/0 (api doc) function. For concise access it might be wrapped into a function:
Mix.Project
mix.exs
config/0
@version Mix.Project.config[:version] def version(), do: @version