-
Notifications
You must be signed in to change notification settings - Fork 3
/
mix.exs
115 lines (107 loc) · 2.79 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
defmodule RabbitMQStream.MixProject do
use Mix.Project
@source_url "https://github.com/VictorGaiva/rabbitmq-stream"
@version File.read!("VERSION")
def project do
[
app: :rabbitmq_stream,
version: @version,
elixir: "~> 1.15",
start_permanent: Mix.env() == :prod,
package: package(),
source_url: @source_url,
deps: deps(),
elixirc_options: [
warnings_as_errors: true
],
docs: [
source_ref: "v#{@version}",
main: "getting-started",
extra_section: "GUIDES",
assets: "guides/assets",
formatters: ["html", "epub"],
groups_for_modules: groups_for_modules(),
extras: extras(),
compilers: [:erlang] ++ Mix.compilers(),
groups_for_extras: groups_for_extras()
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger, :crypto, :ssl]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:ex_doc, "~> 0.31.1", only: :dev, runtime: false},
{:jason, "~> 1.4.1", only: :test, runtime: false},
{:amqp, "~> 3.2", only: :test, runtime: false},
{:amqp10_common, "~> 3.12", only: :test, runtime: false}
]
end
defp package do
[
description: "Elixir Client for RabbitMQ Streams Protocol",
files: [
"lib",
"mix.exs",
"README.md",
"CHANGELOG.md",
"VERSION",
".formatter.exs"
],
maintainers: [
"Victor Gaíva"
],
licenses: ["MIT"],
links: %{
Changelog: "#{@source_url}/blob/master/CHANGELOG.md",
GitHub: @source_url
}
]
end
defp extras do
[
"guides/concepts/producing.md",
"guides/concepts/super-streams.md",
"guides/concepts/interop.md",
"guides/concepts/offset.md",
"guides/setup/getting-started.md",
"guides/setup/configuration.md",
"CHANGELOG.md"
]
end
defp groups_for_extras do
[
Concepts: ~r/guides\/concepts\/.*/,
Setup: ~r/guides\/setup\/.*/,
Changelog: "CHANGELOG.md"
]
end
defp groups_for_modules do
[
Client: [
RabbitMQStream.Connection,
RabbitMQStream.Connection.Behavior,
RabbitMQStream.Producer,
RabbitMQStream.Consumer
],
"Super Stream": [
RabbitMQStream.SuperConsumer,
RabbitMQStream.SuperProducer
],
"Offset Tracking": [
RabbitMQStream.Consumer.OffsetTracking,
RabbitMQStream.Consumer.OffsetTracking.CountStrategy,
RabbitMQStream.Consumer.OffsetTracking.IntervalStrategy
],
"Flow Control": [
RabbitMQStream.Consumer.FlowControl,
RabbitMQStream.Consumer.FlowControl.MessageCount
]
]
end
end