-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmix.exs
75 lines (69 loc) · 1.92 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
# credo:disable-for-this-file Credo.Check.Readability.Specs
defmodule Purl.MixProject do
use Mix.Project
@version "0.2.0"
@source_url "https://github.com/maennchen/purl"
@description "Implementation of the purl (package url) specification"
def project do
[
app: :purl,
version: @version,
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),
test_coverage: [tool: ExCoveralls],
description: @description,
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,
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.html": :test,
"coveralls.json": :test,
"coveralls.post": :test,
"coveralls.xml": :test
],
package: package()
]
end
defp package do
%{
licenses: ["Apache-2.0"],
maintainers: ["Jonatan Männchen"],
links: %{
"GitHub" => @source_url,
"Changelog" => @source_url <> "/releases",
"Issues" => @source_url <> "/issues",
"purl Specification" => "https://github.com/package-url/purl-spec"
}
}
end
def application do
[]
end
defp docs do
[
source_url: @source_url,
source_ref: "v" <> @version,
main: "readme",
extras: ["README.md"]
]
end
defp deps do
[
{:credo, "~> 1.0", only: [:dev], runtime: false},
{:dialyxir, "~> 1.0", only: [:dev], runtime: false},
{:excoveralls, "~> 0.5", only: [:test], runtime: false},
{:ex_doc, ">= 0.0.0", only: [:dev], runtime: false},
{:jason, "~> 1.4", only: [:dev, :test]},
{:stream_data, "~> 1.1", optional: true},
{:styler, "~> 1.4", only: [:dev, :test], runtime: false}
]
end
end