forked from quantum-elixir/quantum-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
89 lines (81 loc) · 2.31 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
defmodule Quantum.Mixfile do
@moduledoc false
use Mix.Project
@version "2.2.7"
def project do
[
app: :quantum,
build_embedded: Mix.env() == :prod,
deps: deps(),
description: "Cron-like job scheduler for Elixir.",
docs: docs(),
elixir: ">= 1.5.1",
name: "Quantum",
elixirc_paths: elixirc_paths(Mix.env()),
package: package(),
start_permanent: Mix.env() == :prod,
test_coverage: [tool: ExCoveralls],
version: @version,
dialyzer: [
ignore_warnings: "dialyzer.ignore-warnings",
plt_add_apps: [:timex, :calendar]
]
]
end
def application do
[mod: {Quantum.Application, []}, extra_applications: [:logger]]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp package do
%{
maintainers: [
"Constantin Rack",
"Dan Swain",
"Lenz Gschwendtner",
"Lucas Charles",
"Rodion Vshevtsov",
"Stanislav Krasnoyarov",
"Kai Faber",
"Jonatan Männchen"
],
licenses: ["Apache License 2.0"],
links: %{
"Changelog" => "https://github.com/quantum-elixir/quantum-core/blob/master/CHANGELOG.md",
"GitHub" => "https://github.com/quantum-elixir/quantum-core"
}
}
end
defp docs do
[
main: "readme",
source_ref: "v#{@version}",
source_url: "https://github.com/quantum-elixir/quantum-core",
extras: [
"README.md",
"CHANGELOG.md",
"MIGRATE-V2.md",
"pages/supervision-tree.md",
"pages/configuration.md",
"pages/runtime.md",
"pages/crontab-format.md",
"pages/run-strategies.md",
"pages/date-library.md"
]
]
end
defp deps do
[
{:timex, "~> 3.1", optional: true},
{:calendar, "~> 0.17", optional: true},
{:crontab, "~> 1.1"},
{:gen_stage, "~> 0.12"},
{:earmark, "~> 1.0", only: [:dev, :docs], runtime: false},
{:ex_doc, "~> 0.13", only: [:dev, :docs], runtime: false},
{:excoveralls, "~> 0.5", only: [:dev, :test], runtime: false},
{:inch_ex, "~> 0.5", only: [:dev, :docs], runtime: false},
{:dialyxir, "~> 0.5", only: [:dev, :test], runtime: false},
{:credo, "~> 0.7", only: [:dev, :test], runtime: false}
]
end
end