defmodule Cachetastic.MixProject do use Mix.Project def project do [ app: :cachetastic, version: "0.2.0", elixir: "~> 1.14", start_permanent: Mix.env() == :prod, elixirc_paths: elixirc_paths(Mix.env()), deps: deps(), description: "A unified caching library for Elixir with support for ETS and Redis backends.", package: package(), name: "Cachetastic", source_url: "https://github.com/gskolber/cachetastic", homepage_url: "https://github.com/gskolber/cachetastic", docs: [ main: "readme", extras: ["README.md", "docs/ecto.md"] ] ] end def application do [ mod: {Cachetastic.Application, []}, extra_applications: [:logger] ] end defp elixirc_paths(:test), do: ["lib", "test/support"] defp elixirc_paths(_), do: ["lib"] defp deps do [ {:redix, "~> 1.5"}, {:jason, "~> 1.4"}, {:telemetry, "~> 1.0"}, {:ecto, "~> 3.6", only: :test, runtime: false}, {:ecto_sql, "~> 3.6", only: :test, runtime: false}, {:postgrex, ">= 0.0.0", only: :test, runtime: false}, {:patch, "~> 0.12.0", only: :test, runtime: false}, {:ex_doc, "~> 0.34", only: :dev, runtime: false}, {:credo, "~> 1.7.12", only: [:dev, :test], runtime: false} ] end defp package do [ maintainers: ["Gabriel Kolber"], licenses: ["MIT"], links: %{"GitHub" => "https://github.com/gskolber/cachetastic"} ] end end