Current section

Files

Jump to
avrora mix.exs
Raw

mix.exs

defmodule Avrora.MixProject do
use Mix.Project
def project do
[
app: :avrora,
# Let's wait for non-beta avro_ex or replace it?
version: "0.1.0-beta",
elixir: "~> 1.6",
description: description(),
package: package(),
docs: docs(),
start_permanent: Mix.env() == :prod,
test_coverage: [tool: ExCoveralls],
elixirc_paths: elixirc_paths(Mix.env()),
dialyzer: [
plt_file: {:no_warn, "priv/plts/dialyzer.plt"}
],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
],
deps: deps()
]
end
def application do
[
extra_applications: [:logger, :inets, :ssl]
]
end
# Pathes to compile
defp elixirc_paths(:test), do: ["test/support", "lib"]
defp elixirc_paths(_), do: ["lib"]
defp description do
"""
Avrora is an Elixir library for convenient work with AVRO messages and schemas.
It was influenced by [AvroTurf](https://github.com/dasch/avro_turf) Ruby gem.
"""
end
defp package do
[
maintainers: ["Sergey Fedorov"],
licenses: ["MIT"],
links: %{
GitHub: "https://github.com/Strech/avrora",
Docs: "https://hexdocs.pm/avrora"
},
files: [
"lib",
"assets",
"mix.exs",
"README.md",
"LICENSE.md"
]
]
end
defp docs do
[
main: "readme",
logo: "assets/logo.png",
source_url: "https://github.com/Strech/avrora",
extras: [
"README.md"
]
]
end
defp deps do
[
{:jason, "~> 1.1"},
# This is a preferred dependency state, but impossible to use with hex.pm
# {:avro_ex, git: "https://github.com/beam-community/avro_ex.git", sha: " 9a02fd6"},
{:avro_ex, "~> 0.1.0-beta.6"},
{:mox, "~> 0.5", only: :test},
{:ex_doc, "~> 0.13", only: :dev},
{:dialyxir, "~> 1.0.0-rc.6", only: :dev, runtime: false},
{:credo, "~> 1.0.0", only: :dev, runtime: false},
{:excoveralls, "~> 0.11", only: :test}
]
end
end