-
Notifications
You must be signed in to change notification settings - Fork 3
/
mix.exs
80 lines (75 loc) · 2.18 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
defmodule Klife.MixProject do
use Mix.Project
def project do
[
app: :klife,
version: "0.5.0",
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
# docs
name: "Klife",
description: "Kafka client focused on performance",
source_url: "https://github.com/oliveigah/klife",
extras: [],
package: [
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/oliveigah/klife"}
],
docs: [
main: "readme",
assets: "assets",
extras: [
"README.md",
"guides/examples/client_configuration.md"
],
groups_for_extras: [
Examples: Path.wildcard("guides/examples/*.md")
],
groups_for_docs: [
groups_for_docs("Producer API"),
groups_for_docs("Transaction API")
],
groups_for_modules: [
Client: [Klife.Client, Klife.Topic, Klife.Record],
Producer: [
Klife.Producer,
Klife.Producer.DefaultPartitioner,
Klife.TxnProducerPool
],
Testing: [Klife.Testing],
Behaviours: [Klife.Behaviours.Partitioner],
Example: [MyClient]
]
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger],
mod: {Klife.Application, []}
]
end
defp groups_for_docs(group), do: {String.to_atom(group), &(&1[:group] == group)}
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(:dev), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:klife_protocol, "~> 0.7.0"},
{:nimble_options, "~> 1.0"},
{:nimble_pool, "~> 1.1"},
# docs
{:ex_doc, "~> 0.31", only: :dev, runtime: false},
# Benchmarks and tests
{:benchee, "~> 1.0", only: :dev, runtime: false},
{:kafka_ex, "~> 0.13", only: :dev},
{:brod, "~> 3.16", only: :dev},
{:erlkaf, "~> 2.1.6", only: :dev},
{:observer_cli, "~> 1.7", only: :dev}
]
end
end