-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
89 lines (83 loc) · 2.48 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
80
81
82
83
84
85
86
87
88
89
# credo:disable-for-this-file Credo.Check.Readability.Specs
defmodule MixDependencySubmission.MixProject do
use Mix.Project
@version "1.0.0-beta.1"
@source_url "https://github.com/maennchen/mix-dependency-submission"
@description """
:warning: This repository is not ready for use. Please check back later.
Calculates dependencies for Mix and submits the list to the GitHub Dependency Submission API
"""
def project do
[
app: :mix_dependency_submission,
version: @version,
elixir: "1.14.4",
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(),
escript: [main_module: MixDependencySubmission.CLI],
source_url: @source_url,
# Loaded via archive in MixDependencySubmission.CLI.prepare_run/0
xref: [exclude: [Hex.Repo]]
]
end
def application do
[
extra_applications: [:logger, :mix]
]
end
defp package do
%{
licenses: ["Apache-2.0"],
maintainers: ["Jonatan Männchen"],
links: %{
"GitHub" => @source_url,
"Changelog" => @source_url <> "/releases",
"Issues" => @source_url <> "/issues"
}
}
end
defp docs do
[
source_url: @source_url,
source_ref: "v" <> @version,
main: "readme",
extras: ["README.md"]
]
end
defp deps do
[
{:ex_doc, ">= 0.0.0", only: [:dev], runtime: false},
{:excoveralls, "~> 0.5", only: [:test], runtime: false},
# TODO: Remove when the following PR is merged & released:
# https://github.com/deadtrickster/ssl_verify_fun.erl/pull/27
{:ssl_verify_fun, "~> 1.1",
manager: :rebar3, only: [:test], runtime: false, override: true},
{:dialyxir, "~> 1.0", only: [:dev], runtime: false},
{:credo, "~> 1.0", only: [:dev], runtime: false},
{:jason, "~> 1.4"},
{:optimus, "~> 0.2"},
{:req, "~> 0.3.6"},
{:castore, "~> 1.0"},
{:purl, "~> 0.1.1"}
]
end
end