diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2023-12-24 10:45:29 +0100 |
---|---|---|
committer | Mark Felder <feld@feld.me> | 2024-06-12 15:18:47 -0400 |
commit | c389ea0f42bf01bbc463e9e237162aab3dabf7a7 (patch) | |
tree | 7127d233e7506d21da64f1921655858c496cf94c /mix.exs | |
parent | ba6afdb44de43e4057e7c8972195402097d43dc6 (diff) | |
download | pleroma-c389ea0f42bf01bbc463e9e237162aab3dabf7a7.tar.gz pleroma-c389ea0f42bf01bbc463e9e237162aab3dabf7a7.zip |
Fix compatibility with Loggers in Elixir 1.15+
Diffstat (limited to 'mix.exs')
-rw-r--r-- | mix.exs | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -109,6 +109,14 @@ defmodule Pleroma.Mixfile do for s <- oauth_strategy_packages, do: {String.to_atom(s), ">= 0.0.0"} 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. @@ -197,7 +205,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. |