-
Notifications
You must be signed in to change notification settings - Fork 3
/
mix.exs
70 lines (63 loc) · 1.51 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
defmodule ExAliyunSls.MixProject do
use Mix.Project
@source_url "https://github.com/edragonconnect/ex_aliyun_sls"
@version "0.3.3"
def project do
[
app: :ex_aliyun_sls,
version: @version,
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),
package: package(),
aliases: aliases()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
mod: {ExAliyunSls.Application, []},
extra_applications: [:logger]
]
end
def package do
[
description: "Aliyun Log Service log producer for Elixir",
licenses: ["MIT"],
links: %{"GitHub" => @source_url}
]
end
defp aliases do
[
"gen.pb": [
"protox.generate --keep-unknown-fields=false --output-path=lib/ex_aliyun_sls/protobuf/log_logs.pb.ex protos/log_logs.proto"
]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:tesla, "~> 1.4"},
{:finch, "~> 0.5"},
{:plug, "~> 1.11"},
{:protox, "~> 1.2"},
{:jason, "~> 1.2"},
{:timex, "~> 3.6"},
{:elixir_uuid, "~> 1.2"},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:credo, "~> 1.0", only: [:dev, :test], runtime: false}
]
end
defp docs do
[
extras: [
"LICENSE.md": [title: "License"],
"README.md": [title: "Overview"]
],
main: "readme",
source_url: @source_url,
formatters: ["html"]
]
end
end