-
Notifications
You must be signed in to change notification settings - Fork 274
/
mix.exs
86 lines (80 loc) · 1.99 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
defmodule Postgrex.Mixfile do
use Mix.Project
@source_url "https://github.com/elixir-ecto/postgrex"
@version "0.19.3"
def project do
[
app: :postgrex,
version: @version,
elixir: "~> 1.11",
deps: deps(),
name: "Postgrex",
description: "PostgreSQL driver for Elixir",
docs: docs(),
package: package(),
xref: [exclude: [Jason]]
]
end
# Configuration for the OTP application
def application do
[
extra_applications: [:logger, :crypto, :ssl],
mod: {Postgrex.App, []},
env: [type_server_reap_after: 3 * 60_000, json_library: Jason]
]
end
defp deps do
[
{:ex_doc, ">= 0.0.0", only: :docs},
{:jason, "~> 1.0", optional: true},
{:table, "~> 0.1.0", optional: true},
{:decimal, "~> 1.5 or ~> 2.0"},
{:db_connection, "~> 2.1"}
]
end
defp docs do
[
source_url: @source_url,
source_ref: "v#{@version}",
main: "readme",
extras: ["README.md", "CHANGELOG.md"],
skip_undefined_reference_warnings_on: ["CHANGELOG.md"],
groups_for_modules: [
# Postgrex
# Postgrex.Notifications
# Postgrex.Query
# Postgrex.ReplicationConnection
# Postgrex.SimpleConnection
# Postgrex.Stream
# Postgrex.Result
"Data Types": [
Postgrex.Box,
Postgrex.Circle,
Postgrex.INET,
Postgrex.Interval,
Postgrex.Lexeme,
Postgrex.Line,
Postgrex.LineSegment,
Postgrex.MACADDR,
Postgrex.Path,
Postgrex.Point,
Postgrex.Polygon,
Postgrex.Range
],
"Custom types and Extensions": [
Postgrex.DefaultTypes,
Postgrex.Extension,
Postgrex.TypeInfo,
Postgrex.Types
]
]
]
end
defp package do
[
maintainers: ["Eric Meadows-Jönsson", "James Fish"],
licenses: ["Apache-2.0"],
links: %{"GitHub" => @source_url}
]
end
end