-
Notifications
You must be signed in to change notification settings - Fork 24
/
mix.exs
65 lines (58 loc) · 1.46 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
defmodule BroadwayCloudPubSub.MixProject do
use Mix.Project
@version "0.9.1"
@description "A Google Cloud Pub/Sub connector for Broadway"
@repo_url "https://github.com/dashbitco/broadway_cloud_pub_sub"
def project do
[
app: :broadway_cloud_pub_sub,
version: @version,
elixir: "~> 1.11",
elixirc_paths: elixirc_paths(Mix.env()),
name: "BroadwayCloudPubSub",
description: @description,
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),
package: package()
]
end
def application do
[
extra_applications: [:logger]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:broadway, "~> 1.0"},
{:finch, "~> 0.9"},
{:jason, "~> 1.0"},
{:nimble_options, "~> 0.3.7 or ~> 0.4 or ~> 1.0"},
{:telemetry, "~> 0.4.3 or ~> 1.0"},
{:goth, "~> 1.3", optional: true},
{:ex_doc, "~> 0.23", only: :docs},
{:bypass, "~> 2.1", only: :test}
]
end
defp docs do
[
main: "BroadwayCloudPubSub.Producer",
nest_modules_by_prefix: [BroadwayCloudPubSub],
source_ref: "v#{@version}",
source_url: @repo_url,
extras: [
"README.md",
"CHANGELOG.md"
]
]
end
defp package do
%{
licenses: ["Apache-2.0"],
links: %{"GitHub" => @repo_url}
}
end
end