-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
61 lines (54 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
defmodule SRTM.MixProject do
use Mix.Project
@version "0.8.0"
@source_url "https://github.com/adriankumpf/srtm"
def project do
[
app: :srtm,
version: @version,
elixir: "~> 1.11",
elixirc_paths: elixirc_paths(Mix.env()),
name: "SRTM",
description:
"A small library that provides a simple interface to query locations on the earth for elevation data from the NASA Shuttle Radar Topography Mission (SRTM)",
deps: deps(),
package: package(),
docs: docs(),
xref: [exclude: [CAStore]]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
def application do
[extra_applications: [:inets, :ssl, :public_key]]
end
defp deps do
[
{:castore, "~> 1.0", optional: true},
{:ex_doc, "~> 0.27", only: :dev, runtime: false},
{:bypass, "~> 2.1", only: :test},
{:benchee, "~> 1.0", only: :dev}
]
end
defp package do
%{
licenses: ["MIT"],
maintainers: ["Adrian Kumpf"],
links: %{"GitHub" => @source_url, "Changelog" => "#{@source_url}/blob/master/CHANGELOG.md"},
files: ~w(lib mix.exs README.md LICENSE CHANGELOG.md)
}
end
defp docs do
[
extras: ~w(CHANGELOG.md README.md),
source_ref: "#{@version}",
source_url: @source_url,
main: "readme",
groups_for_modules: [
Sources: ~r/Source/,
Caches: ~r/Cache/
],
skip_undefined_reference_warnings_on: ~w(CHANGELOG.md README.md)
]
end
end