-
Notifications
You must be signed in to change notification settings - Fork 162
/
mix.exs
73 lines (66 loc) · 1.76 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
defmodule KafkaEx.Mixfile do
@moduledoc false
use Mix.Project
@source_url "https://github.com/kafkaex/kafka_ex"
@version "0.15.0-dev"
def project do
[
app: :kafka_ex,
version: @version,
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(Mix.env()),
dialyzer: [
plt_add_apps: [:ssl],
plt_core_path: "priv/plts",
plt_file: {:no_warn, "priv/plts/kafka_ex.plt"},
flags: [:error_handling]
],
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",
"CONTRIBUTING.md"
],
source_url: @source_url,
source_ref: @version
]
]
end
def application do
[
mod: {KafkaEx, []},
extra_applications: [:logger, :ssl]
]
end
defp deps do
[
{:kayrock, "~> 0.2.0-rc.1"},
{:credo, "~> 1.1", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: :dev, runtime: false},
{:excoveralls, "~> 0.18", only: :test, runtime: false},
{:ex_doc, "~> 0.23", only: :dev, runtime: false},
{:hammox, "~> 0.5.0", only: :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
end