summaryrefslogtreecommitdiff
path: root/mix.exs
diff options
context:
space:
mode:
Diffstat (limited to 'mix.exs')
-rw-r--r--mix.exs65
1 files changed, 40 insertions, 25 deletions
diff --git a/mix.exs b/mix.exs
index 3edae5046..6770f95fd 100644
--- a/mix.exs
+++ b/mix.exs
@@ -5,10 +5,10 @@ defmodule Pleroma.Mixfile do
[
app: :pleroma,
version: version("2.6.52"),
- elixir: "~> 1.11",
+ elixir: "~> 1.13",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: Mix.compilers(),
- elixirc_options: [warnings_as_errors: warnings_as_errors()],
+ elixirc_options: [warnings_as_errors: warnings_as_errors(), prune_code_paths: false],
xref: [exclude: [:eldap]],
dialyzer: [plt_add_apps: [:mix, :eldap]],
start_permanent: Mix.env() == :prod,
@@ -73,14 +73,16 @@ defmodule Pleroma.Mixfile do
def application do
[
mod: {Pleroma.Application, []},
- extra_applications: [
- :logger,
- :runtime_tools,
- :comeonin,
- :fast_sanitize,
- :os_mon,
- :ssl
- ],
+ extra_applications:
+ [
+ :logger,
+ :runtime_tools,
+ :comeonin,
+ :fast_sanitize,
+ :os_mon,
+ :ssl,
+ :eldap
+ ] ++ logger_application(),
included_applications: [:ex_syslogger]
]
end
@@ -109,6 +111,22 @@ defmodule Pleroma.Mixfile do
for s <- oauth_strategy_packages, do: {String.to_atom(s), ">= 0.0.0"}
end
+ defp logger_application do
+ if Version.match?(System.version(), "<1.15.0-rc.0") do
+ []
+ else
+ [:logger_backends]
+ end
+ end
+
+ defp logger_deps do
+ if Version.match?(System.version(), "<1.15.0-rc.0") do
+ []
+ else
+ [{:logger_backends, "~> 1.0"}]
+ end
+ end
+
# Specifies your project dependencies.
#
# Type `mix help deps` for examples and options.
@@ -120,15 +138,13 @@ defmodule Pleroma.Mixfile do
{:ecto_enum, "~> 1.4"},
{:postgrex, ">= 0.0.0"},
{:phoenix_html, "~> 3.3"},
- {:phoenix_live_reload, "~> 1.3.3", only: :dev},
{:phoenix_live_view, "~> 0.19.0"},
{:phoenix_live_dashboard, "~> 0.8.0"},
{:telemetry_metrics, "~> 0.6"},
{:telemetry_poller, "~> 1.0"},
{:tzdata, "~> 1.0.3"},
{:plug_cowboy, "~> 2.5"},
- # oban 2.14 requires Elixir 1.12+
- {:oban, "~> 2.13.4"},
+ {:oban, "~> 2.17.9"},
{:gettext, "~> 0.20"},
{:bcrypt_elixir, "~> 2.2"},
{:trailing_format_plug, "~> 0.0.7"},
@@ -136,8 +152,7 @@ defmodule Pleroma.Mixfile do
{:html_entities, "~> 0.5", override: true},
{:calendar, "~> 1.0"},
{:cachex, "~> 3.2"},
- {:poison, "~> 3.0", override: true},
- {:tesla, "~> 1.8.0"},
+ {:tesla, "~> 1.11"},
{:castore, "~> 0.1"},
{:cowlib, "~> 2.9", override: true},
{:gun, "~> 2.0.0-rc.1", override: true},
@@ -147,13 +162,11 @@ defmodule Pleroma.Mixfile do
{:ex_aws, "~> 2.1.6"},
{:ex_aws_s3, "~> 2.0"},
{:sweet_xml, "~> 0.7.2"},
- # earmark 1.4.23 requires Elixir 1.12+
- {:earmark, "1.4.22"},
+ {:earmark, "1.4.46"},
{:bbcode_pleroma, "~> 0.2.0"},
{:cors_plug, "~> 2.0"},
{:web_push_encryption, "~> 0.3.1"},
- # swoosh 1.11.2+ requires Elixir 1.12+
- {:swoosh, "~> 1.10.0"},
+ {:swoosh, "~> 1.16.9"},
{:phoenix_swoosh, "~> 1.1"},
{:gen_smtp, "~> 0.13"},
{:ex_syslogger, "~> 1.4"},
@@ -177,7 +190,7 @@ defmodule Pleroma.Mixfile do
ref: "b647d0deecaa3acb140854fe4bda5b7e1dc6d1c8"},
{:captcha,
git: "https://git.pleroma.social/pleroma/elixir-libraries/elixir-captcha.git",
- ref: "90f6ce7672f70f56708792a98d98bd05176c9176"},
+ ref: "6630c42aaaab124e697b4e513190c89d8b64e410"},
{:restarter, path: "./restarter"},
{:majic, "~> 1.0"},
{:open_api_spex, "~> 3.16"},
@@ -185,12 +198,14 @@ defmodule Pleroma.Mixfile do
{:vix, "~> 0.26.0"},
{:elixir_make, "~> 0.7.7", override: true},
{:blurhash, "~> 0.1.0", hex: :rinpatch_blurhash},
- {:exile,
- git: "https://github.com/akash-akya/exile.git",
- ref: "be87c33b02a7c3c5d22d2ece01fbd462355b28ef"},
- {:bandit, "~> 1.2"},
+ {:exile, "~> 0.10.0"},
+ {:bandit, "~> 1.5.2"},
+ {:websock_adapter, "~> 0.5.6"},
+ {:oban_live_dashboard, "~> 0.1.1"},
## dev & test
+ {:phoenix_live_reload, "~> 1.3.3", only: :dev},
+ {:poison, "~> 3.0", only: :test},
{:ex_doc, "~> 0.22", only: :dev, runtime: false},
{:ex_machina, "~> 2.4", only: :test},
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
@@ -201,7 +216,7 @@ defmodule Pleroma.Mixfile do
{:websockex, "~> 0.4.3", only: :test},
{:benchee, "~> 1.0", only: :benchmark},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false}
- ] ++ oauth_deps()
+ ] ++ oauth_deps() ++ logger_deps()
end
# Aliases are shortcuts or tasks specific to the current project.