forked from drowzy/protobuf_generate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
77 lines (70 loc) · 1.65 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
defmodule ProtobufGenerate.MixProject do
use Mix.Project
@source_url "https://github.com/drowzy/protobuf_generate"
@version "0.1.2"
@description "Protobuf code generation as a mix task"
def project do
[
app: :protobuf_generate,
version: @version,
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
description: @description,
package: package(),
docs: docs(),
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_env), do: ["lib"]
defp package do
[
maintainers: ["Simon Thörnqvist"],
licenses: ["MIT"],
files: ~w(
mix.exs
README.md
lib/mix
lib/protobuf_generate
LICENSE
.formatter.exs
),
links: %{"GitHub" => @source_url}
]
end
defp docs do
[
extras: ["README.md"],
main: "readme",
source_url: @source_url,
source_ref: "v#{@version}"
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:protobuf, "~> 0.12"},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:google_protobuf,
github: "protocolbuffers/protobuf",
branch: "main",
submodules: true,
app: false,
compile: false,
only: [:dev, :test]},
{:googleapis,
github: "googleapis/googleapis",
branch: "master",
app: false,
compile: false,
only: [:dev, :test]},
]
end
end