25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00

Some dependencies are optional, check them in mix.exs

This commit is contained in:
Badlop 2022-02-08 14:00:57 +01:00
parent dda60fcf0d
commit 37d2bdd90d

12
mix.exs
View File

@ -43,7 +43,7 @@ defmodule Ejabberd.MixProject do
extra_applications: [:mix], extra_applications: [:mix],
applications: [:idna, :inets, :kernel, :sasl, :ssl, :stdlib, applications: [:idna, :inets, :kernel, :sasl, :ssl, :stdlib,
:base64url, :fast_tls, :fast_xml, :fast_yaml, :jiffy, :jose, :base64url, :fast_tls, :fast_xml, :fast_yaml, :jiffy, :jose,
:p1_utils, :stringprep, :stun, :yconf], :p1_utils, :stringprep, :yconf],
included_applications: [:lager, :mnesia, :os_mon, included_applications: [:lager, :mnesia, :os_mon,
:cache_tab, :eimp, :esip, :mqtree, :p1_acme, :cache_tab, :eimp, :esip, :mqtree, :p1_acme,
:p1_oauth2, :pkix, :xmpp] :p1_oauth2, :pkix, :xmpp]
@ -108,7 +108,6 @@ defmodule Ejabberd.MixProject do
{:cache_tab, "~> 1.0"}, {:cache_tab, "~> 1.0"},
{:distillery, "~> 2.0"}, {:distillery, "~> 2.0"},
{:eimp, "~> 1.0"}, {:eimp, "~> 1.0"},
{:esip, "~> 1.0"},
{:ex_doc, ">= 0.0.0", only: :dev}, {:ex_doc, ">= 0.0.0", only: :dev},
{:fast_tls, "~> 1.1"}, {:fast_tls, "~> 1.1"},
{:fast_xml, "~> 1.1"}, {:fast_xml, "~> 1.1"},
@ -119,13 +118,10 @@ defmodule Ejabberd.MixProject do
{:lager, "~> 3.9.1"}, {:lager, "~> 3.9.1"},
{:mqtree, "~> 1.0"}, {:mqtree, "~> 1.0"},
{:p1_acme, "~> 1.0"}, {:p1_acme, "~> 1.0"},
{:p1_mysql, "~> 1.0"},
{:p1_oauth2, "~> 0.6"}, {:p1_oauth2, "~> 0.6"},
{:p1_pgsql, "~> 1.1"},
{:p1_utils, "~> 1.0"}, {:p1_utils, "~> 1.0"},
{:pkix, "~> 1.0"}, {:pkix, "~> 1.0"},
{:stringprep, ">= 1.0.26"}, {:stringprep, ">= 1.0.26"},
{:stun, "~> 1.0"},
{:xmpp, "~> 1.5"}, {:xmpp, "~> 1.5"},
{:yconf, "~> 1.0"}] {:yconf, "~> 1.0"}]
++ cond_deps() ++ cond_deps()
@ -146,9 +142,13 @@ defmodule Ejabberd.MixProject do
defp cond_deps do defp cond_deps do
for {:true, dep} <- [{config(:pam), {:epam, "~> 1.0"}}, for {:true, dep} <- [{config(:pam), {:epam, "~> 1.0"}},
{config(:redis), {:eredis, "~> 1.2.0"}}, {config(:redis), {:eredis, "~> 1.2.0"}},
{config(:sip), {:esip, "~> 1.0"}},
{config(:zlib), {:ezlib, "~> 1.0"}}, {config(:zlib), {:ezlib, "~> 1.0"}},
{config(:lua), {:luerl, "~> 1.0"}}, {config(:lua), {:luerl, "~> 1.0"}},
{config(:sqlite), {:sqlite3, "~> 1.1"}}], do: {config(:mysql), {:p1_mysql, "~> 1.0"}},
{config(:pgsql), {:p1_pgsql, "~> 1.1"}},
{config(:sqlite), {:sqlite3, "~> 1.1"}},
{config(:stun), {:stun, "~> 1.0"}}], do:
dep dep
end end