use Mix.Project.Config for some Application functions

This commit is contained in:
parent b0c4c082c4
commit cd6db6abe4

View file

@ -6,9 +6,9 @@ defmodule Pleroma.Application do
use Application use Application
import Supervisor.Spec import Supervisor.Spec
@name "Pleroma" @name Mix.Project.config()[:name]
@version Mix.Project.config()[:version] @version Mix.Project.config()[:version]
@repository "https://git.pleroma.social/pleroma/pleroma" @repository Mix.Project.config()[:source_url]
def name, do: @name def name, do: @name
def version, do: @version def version, do: @version
def named_version(), do: @name <> " " <> @version def named_version(), do: @name <> " " <> @version