defmodule Jabbax.MixProject do use Mix.Project def project do [ app: :jabbax, version: "1.2.0", elixir: "~> 1.15", build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, deps: deps(), description: "JSON API Building Blocks Assembly for Elixir", source_url: "https://github.com/surgeventures/jabbax", homepage_url: "https://github.com/surgeventures/jabbax", package: package(), dialyzer: [ plt_add_apps: [:ex_unit, :plug], plt_add_deps: :app_tree, plt_file: {:no_warn, "priv/plts/dialyzer.plt"} ] ] end defp package do [ licenses: ["MIT"], links: %{ "GitHub" => "https://github.com/surgeventures/jabbax", "Fresha" => "https://www.fresha.com" }, files: ~w(mix.exs lib LICENSE README.md) ] end def application do [extra_applications: [:logger], env: [json_encoder: Poison, json_decoder: Poison]] end defp deps do [ {:credo, "~> 1.7", only: [:dev, :test], runtime: false}, {:ex_doc, "~> 0.30", only: :dev, runtime: false}, {:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false}, {:plug, "~> 1.14", optional: true}, {:poison, "~> 3.0 or ~> 4.0 or ~> 5.0 or ~> 6.0", optional: true}, {:jason, "~> 1.0", optional: true} ] end end