Current section

Files

Jump to
rabbit mix.exs
Raw

mix.exs

defmodule Rabbit.MixProject do
use Mix.Project
@version "0.19.0"
def project do
[
app: :rabbit,
version: @version,
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
name: "Rabbit",
docs: docs(),
aliases: aliases(),
preferred_cli_env: preferred_cli_env()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
defp description do
"""
A set of tools for building robust applications with RabbitMQ.
"""
end
defp package do
[
files: ["lib", "mix.exs", "README*"],
maintainers: ["Nicholas Sweeting"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/nsweeting/rabbit"}
]
end
defp docs do
[
extras: ["README.md"],
main: "readme",
source_url: "https://github.com/nsweeting/rabbit"
]
end
# Aliases are shortcuts or tasks specific to the current project.
defp aliases do
[
ci: [
"deps.get",
"compile --warnings-as-errors",
"format --check-formatted",
"credo --strict",
"test"
]
]
end
# Specifies the preferred env for mix commands.
defp preferred_cli_env do
[
ci: :test
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:amqp, "~> 3.0"},
{:poolboy, "~> 1.5"},
{:keyword_validator, "~> 2.0"},
{:jason, "~> 1.2", optional: true},
{:benchee, "~> 1.0", only: :dev, runtime: false},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
{:inch_ex, github: "rrrene/inch_ex", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.28", only: :dev, runtime: false}
]
end
end