forked from basho/riak_pb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
43 lines (38 loc) · 1.01 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
defmodule RiakPb.Mixfile do
use Mix.Project
@version File.read!("VERSION") |> String.strip
def project do
[app: :riak_pb,
version: @version,
description: "Riak Protocol Buffers Messages",
package: package(),
deps: deps(),
erlc_options: erlc_options()]
end
defp erlc_options do
extra_options = try do
case :erlang.list_to_integer(:erlang.system_info(:otp_release)) do
v when v >= 17 ->
[{:d, :namespaced_types}]
_ ->
[]
end
catch
_ ->
[]
end
[:debug_info, :warnings_as_errors | extra_options]
end
defp deps do
[
{:hamcrest, "~> 0.4.1", hex: :basho_hamcrest},
{:ex_doc, ">= 0.0.0", only: :dev}
]
end
defp package do
[files: ~w(mix.exs src plugins include rebar.config tools.mk README.md VERSION LICENSE Makefile),
maintainers: ["Drew Kerrigan, Luke Bakken, Alex Moore"],
licenses: ["Apache 2.0"],
links: %{"GitHub" => "https://github.com/basho/riak_pb"}]
end
end