defmodule Charon.MixProject do use Mix.Project def project do [ app: :charon, version: "3.0.2", elixir: "~> 1.12", 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: "v3.0.2", 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 [ {:blake3, "~> 1.0", optional: true}, {:ex_doc, "~> 0.21", only: [:dev, :test], runtime: false}, {:fastglobal, "~> 1.0"}, {:jose, "~> 1.11", only: [:test], runtime: false}, {:mix_test_watch, "~> 1.0", only: [:dev], runtime: false}, {:mock, "~> 0.3", only: [:test]}, {:plug, "~> 1.11"}, {:poolboy, "~> 1.5", optional: true}, {:redix, "~> 1.1", optional: true} ] end defp elixirc_paths(:test), do: ["lib", "test/support"] defp elixirc_paths(_), do: ["lib"] end