mix.exs

defmodule Adt.Mixfile do
  use Mix.Project

  @url "https://github.com/vendethiel/adt.ex"

  def project do
    [app: :adt,
     version: "1.0.0",
     elixir: "~> 1.2",
     description: description(),
     package: package(),
     build_embedded: Mix.env == :prod,
     start_permanent: Mix.env == :prod,
     deps: deps()]
  end

  def application do
    [applications: [:logger]]
  end

  defp deps do
    [
      {:ex_doc, ">= 0.0.0", only: :dev, runtime: false}
    ]
  end

  defp description do
    """
    A light ADT module for Elixir.
    """
  end

  defp package do
    [
      name: :adt,
      files: ["lib", "mix.exs"],
      licenses: ["Apache-2.0"],
      links: %{"GitHub" => @url},
      maintainers: ["vendethiel", "bobjflong"]
    ]
  end
end