1defmodule TimexEcto.Mixfile do
2  use Mix.Project
3
4  def project do
5    [app: :timex_ecto,
6     version: "3.3.0",
7     elixir: "~> 1.4",
8     build_embedded: Mix.env == :prod,
9     start_permanent: Mix.env == :prod,
10     deps: deps(),
11     package: package()]
12  end
13
14  # Configuration for the OTP application
15  #
16  # Type `mix help compile.app` for more information
17  def application do
18    [applications: [:logger, :ecto, :timex]]
19  end
20
21  # Dependencies can be Hex packages:
22  #
23  #   {:mydep, "~> 0.3.0"}
24  #
25  # Or git/path repositories:
26  #
27  #   {:mydep, git: "https://github.com/elixir-lang/mydep.git", tag: "0.1.0"}
28  #
29  # Type `mix help deps` for more examples and options
30  defp deps do
31    [{:timex, "~> 3.1"},
32     {:ecto, "~> 2.2"},
33     {:postgrex, "~> 0.13", only: :test},
34     {:ex_doc, "~> 0.13", only: :dev}]
35  end
36
37  defp package do
38    [files: ["lib", "mix.exs", "README.md", "LICENSE.md"],
39     maintainers: ["Paul Schoenfelder"],
40     licenses: ["MIT"],
41     description: "A plugin for Ecto and Timex which allows use of Timex types with Ecto",
42     links: %{"GitHub": "https://github.com/bitwalker/timex_ecto",
43              "Docs": "https://timex.readme.io"}]
44  end
45end
46