-
Notifications
You must be signed in to change notification settings - Fork 78
/
mix.exs
70 lines (64 loc) · 1.53 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
defmodule Tds.Mixfile do
use Mix.Project
@source_url "https://github.com/elixir-ecto/tds"
@version "2.3.5"
def project do
[
app: :tds,
version: @version,
elixir: "~> 1.11",
name: "Tds",
deps: deps(),
docs: docs(),
package: package(),
xref: [exclude: [:ssl]],
rustler_crates: [
tds_encoding: [
mode: if(Mix.env() == :prod, do: :release, else: :debug)
]
]
]
end
def application do
[
extra_applications: [:logger, :crypto, :ssl],
env: [
json_library: Jason
]
]
end
defp deps do
[
{:decimal, "~> 1.9 or ~> 2.0"},
{:jason, "~> 1.0", optional: true},
{:db_connection, "~> 2.0"},
{:ex_doc, "~> 0.19", only: :docs},
{:excoding, "~> 0.1", optional: true, only: :test},
{:tzdata, "~> 1.0", optional: true, only: :test},
{:table, "~> 0.1.0", optional: true}
]
end
defp package do
[
description: "Microsoft SQL Server client (Elixir implementation of the MS TDS protocol)",
name: "tds",
files: ["lib", "mix.exs", "README*", "CHANGELOG*", "LICENSE*"],
maintainers: ["Kevin Seidel"],
licenses: ["Apache-2.0"],
links: %{"Github" => @source_url}
]
end
defp docs do
[
extras: [
"CHANGELOG.md": [],
LICENSE: [title: "License"],
"README.md": [title: "Overview"]
],
main: "readme",
source_url: @source_url,
source_ref: "v#{@version}",
formatters: ["html"]
]
end
end