defmodule Bandit.MixProject do use Mix.Project def project do [ app: :bandit, version: "0.3.2", elixir: "~> 1.9", start_permanent: Mix.env() == :prod, deps: deps(), dialyzer: dialyzer(), name: "Bandit", description: "A pure-Elixir HTTP server built for Plug apps", source_url: "https://github.com/mtrudel/bandit", package: [ files: ["lib", "test", "mix.exs", "README*", "LICENSE*"], maintainers: ["Mat Trudel"], licenses: ["MIT"], links: %{"GitHub" => "https://github.com/mtrudel/bandit"} ] ] end def application do [extra_applications: [:logger]] end defp deps do [ {:thousand_island, "~> 0.4.3"}, {:plug, "~> 1.11"}, {:hpack, "~> 3.0.0"}, {:finch, "~> 0.7", only: [:dev, :test]}, {:ex_doc, "~> 0.24", only: [:dev, :test], runtime: false}, {:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false}, {:credo, "~> 1.1.0", only: [:dev, :test], runtime: false}, {:mix_test_watch, "~> 1.0", only: :dev, runtime: false} ] end defp dialyzer do [plt_core_path: "priv/plts", plt_file: {:no_warn, "priv/plts/dialyzer.plt"}] end end