-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
79 lines (69 loc) · 1.98 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
defmodule ZitadelApi.MixProject do
@moduledoc false
use Mix.Project
api_version_file = __ENV__.file |> Path.dirname() |> Path.join("API_VERSION")
@external_resource api_version_file
@api_version api_version_file |> File.read!() |> String.trim()
@version "2.1.0"
def project do
[
app: :zitadel_api,
version: @version,
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps(),
build_embedded:
Mix.env() == :prod or System.get_env("BUILD_EMBEDDED", "false") in ["1", "true"],
description: description(),
package: package(),
deps: deps(),
docs: docs(),
test_coverage: [tool: ExCoveralls],
dialyzer:
[list_unused_filters: true] ++
if (System.get_env("DIALYZER_PLT_PRIV") || "false") in ["1", "true"] do
[plt_file: {:no_warn, "priv/plts/dialyzer.plt"}]
else
[]
end
]
end
defp description do
"""
Zitadel #{@api_version} GRPC CLient
"""
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
defp package do
# These are the default files included in the package
[
name: :zitadel_api,
files: ["lib", "mix.exs", "README*", "LICENSE*", "API_VERSION"],
maintainers: ["Jonatan Männchen"],
licenses: ["Apache-2.0"],
links: %{"GitHub" => "https://github.com/maennchen/zitadel_api"}
]
end
defp docs do
[
source_ref: "v" <> @version,
source_url: "https://github.com/maennchen/zitadel_api"
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:google_protos, "~> 0.3.0"},
{:grpc, "~> 0.6.0"},
{:ex_doc, "~> 0.19", only: :dev, runtime: false},
{:excoveralls, "~> 0.5", only: [:test], runtime: false},
{:dialyxir, "~> 1.0", only: [:dev], runtime: false},
{:credo, "~> 1.0", only: [:dev], runtime: false}
]
end
end