forked from kafkaex/kafka_ex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
85 lines (77 loc) · 2.03 KB
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
defmodule KafkaEx.Mixfile do
@moduledoc false
use Mix.Project
@source_url "https://github.com/kafkaex/kafka_ex"
@version "0.13.0"
def project do
[
app: :kafka_ex,
version: @version,
elixir: "~> 1.8",
elixirc_paths: elixirc_paths(Mix.env()),
dialyzer: [
plt_add_deps: :transitive,
plt_add_apps: [:ssl],
plt_file: {:no_warn, "priv/plts/dialyzer.plt"},
flags: [
:error_handling,
:race_conditions
]
],
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [coveralls: :test],
description: description(),
package: package(),
deps: deps(),
dialyzer: dialyzer(),
docs: [
main: "readme",
extras: [
"README.md",
"kayrock.md",
"new_api.md",
"CONTRIBUTING.md"
],
source_url: @source_url,
source_ref: @version
]
]
end
def application do
[
mod: {KafkaEx, []},
extra_applications: [:logger]
]
end
defp deps do
[
{:kayrock, "~> 0.1.12"},
{:credo, "~> 1.1", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0", only: :dev, runtime: false},
{:excoveralls, "~> 0.7", only: :test, runtime: false},
{:ex_doc, "~> 0.23", only: :dev, runtime: false},
{:hammox, "~> 0.5.0", only: :test},
{:snappy, git: "https://github.com/fdmanana/snappy-erlang-nif", only: [:dev, :test]},
{:snappyer, "~> 1.2", only: [:dev, :test]}
]
end
defp description do
"Kafka client for Elixir/Erlang."
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp package do
[
maintainers: ["Abejide Ayodele", "Dan Swain", "Jack Lund", "Joshua Scott"],
files: ["lib", "config/config.exs", "mix.exs", "README.md"],
licenses: ["MIT"],
links: %{"GitHub" => @source_url}
]
end
defp dialyzer do
[
plt_core_path: "priv/plts",
plt_file: {:no_warn, "priv/plts/dialyzer.plt"}
]
end
end