forked from bbalser/off_broadway_kafka
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
72 lines (63 loc) · 1.88 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
defmodule OffBroadwayKafka.MixProject do
use Mix.Project
@github "https://github.com/UrbanOS-Public/off_broadway_kafka"
def project do
[
app: :off_broadway_kafka_pipeline,
version: "2.0.0",
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
source_url: @github,
homepage_url: @github,
docs: docs(),
elixirc_paths: elixirc_paths(Mix.env()),
test_paths: test_paths(Mix.env()),
dialyzer: [plt_file: {:no_warn, ".plt/dialyzer.plt"}]
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:elsa_kafka, "~> 2.0"},
{:broadway, "~> 1.0"},
{:retry, "~> 0.15"},
{:mock, "~> 0.3", only: [:dev, :test, :integration]},
{:checkov, "~> 1.0", only: [:dev, :test, :integration]},
{:divo, "~> 2.0", only: [:dev, :integration]},
{:divo_kafka, "~> 1.0", only: [:dev, :integration]},
{:patiently, "~> 0.2", only: [:test, :integration], override: true},
{:ex_doc, "~> 0.21", only: [:dev], runtime: false},
{:benchee, "~> 1.0", only: [:integration]},
{:dialyxir, "~> 1.3", only: [:dev], runtime: false}
]
end
defp package do
[
maintainers: ["Smartcitiesdata"],
licenses: ["Apache 2.0"],
links: %{"GitHub" => @github}
]
end
defp docs do
[
source_url: @github,
extras: ["README.md"],
# api_reference: false,
source_url_pattern: "#{@github}/blob/master/%{path}#L%{line}"
]
end
defp description do
"Implementation of Broadway that supports a Kafka producer"
end
defp elixirc_paths(env) when env in [:test, :integration], do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp test_paths(:integration), do: ["test/integration"]
defp test_paths(_), do: ["test/unit"]
end