defmodule Charon.MixProject do use Mix.Project def project do [ app: :charon, version: "4.2.0", elixir: "~> 1.16", start_permanent: Mix.env() == :prod, deps: deps(), elixirc_paths: elixirc_paths(Mix.env()), description: """ Authentication & sessions for API's. """, package: [ licenses: ["Apache-2.0"], links: %{github: "https://github.com/weareyipyip/charon"}, source_url: "https://github.com/weareyipyip/charon" ], source_url: "https://github.com/weareyipyip/charon", name: "Charon", docs: [ source_ref: "v4.2.0", extras: ~w(./README.md ./LICENSE.md ./UPGRADE_GUIDE.md ./CHANGELOG.md), main: "readme", skip_undefined_reference_warnings_on: ~w(./UPGRADE_GUIDE.md ./CHANGELOG.md) ] ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_applications: [:logger] ] end # Run "mix help deps" to learn about dependencies. defp deps do [ {:ex_doc, "~> 0.21", only: [:dev, :test], runtime: false}, {:jose, "~> 1.11", only: [:test], runtime: false}, {:mock, "~> 0.3", only: [:test]}, {:plug, "~> 1.11"}, {:poolboy, "~> 1.5", optional: true}, {:redix, "~> 1.1", optional: true}, {:jason, "~> 1.0", only: [:dev, :test]}, {:telemetry, "~> 1.0", optional: true}, {:benchmark, github: "juulSme/benchmark_ex", only: [:dev, :test]} ] end defp elixirc_paths(:dev), do: ["lib", "test/support"] defp elixirc_paths(:test), do: ["lib", "test/support"] defp elixirc_paths(_), do: ["lib"] end