forked from kafkaex/kafka_ex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
71 lines (65 loc) · 1.63 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
defmodule KafkaEx.Mixfile do
use Mix.Project
def project do
[
app: :kafka_ex,
version: "0.10.0",
elixir: "~> 1.1",
dialyzer: [
plt_add_deps: :transitive,
flags: [
:error_handling,
:race_conditions
]
],
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [coveralls: :test],
description: description(),
package: package(),
deps: deps(),
docs: [
main: "readme",
extras: [
"README.md",
"kayrock.md",
"new_api.md"
],
source_url: "https://github.com/kafkaex/kafka_ex"
]
]
end
def application do
[
mod: {KafkaEx, []},
applications: [:logger, :ssl]
]
end
defp deps do
main_deps = [
{:kayrock, "~> 0.1.9"},
{:credo, "~> 1.1", only: :dev},
{:dialyxir, "~> 1.0.0-rc.3", only: :dev},
{:excoveralls, "~> 0.7", only: :test},
{:snappy,
git: "https://github.com/fdmanana/snappy-erlang-nif", only: [:dev, :test]}
]
# we need a newer version of ex_doc, but it will cause problems on older
# versions of elixir
if Version.match?(System.version(), ">= 1.7.0") do
main_deps ++ [{:ex_doc, "~> 0.19", only: :dev}]
else
main_deps
end
end
defp description do
"Kafka client for Elixir/Erlang."
end
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" => "https://github.com/kafkaex/kafka_ex"}
]
end
end