defmodule Vela.MixProject do use Mix.Project @version "0.1.0" @source_url "https://github.com/EndritMeziu/vela" def project do [ app: :vela, version: @version, elixir: "~> 1.15", start_permanent: Mix.env() == :prod, deps: deps(), elixirc_paths: elixirc_paths(Mix.env()), name: "VelaCache", description: "A distributed cache library for Elixir with pluggable backends, topologies, and near-cache support.", package: package(), docs: docs(), source_url: @source_url ] end def application do [ extra_applications: [:logger], mod: {Vela.Application, []} ] end defp elixirc_paths(:test), do: ["lib", "test/support"] defp elixirc_paths(_), do: ["lib"] defp package do [ name: "vela_cache", licenses: ["MIT"], links: %{"GitHub" => @source_url}, files: ~w(lib .formatter.exs mix.exs LICENSE README.md) ] end defp docs do [ main: "Vela.Cache", source_ref: "v#{@version}", extras: [] ] end defp deps do [ {:telemetry, "~> 1.2"}, {:redix, "~> 1.3", optional: true}, {:jason, "~> 1.4", optional: true}, {:phoenix_pubsub, "~> 2.1", optional: true}, {:ex_doc, ">= 0.0.0", only: :dev, runtime: false}, {:credo, "~> 1.7", only: [:dev, :test], runtime: false}, {:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false}, {:benchee, "~> 1.3", only: :dev, runtime: false}, {:mox, "~> 1.1", only: :test} ] end end