     ]
   end
 
-  defp package do
+  defp package() do
     [
       maintainers: ["Josh Steiner", "Paul Smith"],
       licenses: ["MIT"],

      elixirc_paths: elixirc_paths(Mix.env),
      build_embedded: Mix.env == :prod,
      start_permanent: Mix.env == :prod,
      package: package,
      docs: [main: "readme", extras: ["README.md"]],
      deps: deps
    ]
  end

  def application do
    [
      applications: app_list(Mix.env),
      mod: {ExMachina, []}
    ]
  end

  def app_list(:test), do: app_list ++ [:ecto, :postgrex]
  def app_list(_), do: app_list
  def app_list, do: [:logger]

  defp deps do
    [
      {:ex_doc, "~> 0.9", only: :dev},
      {:earmark, ">= 0.0.0", only: :dev},

  @project_url "https://github.com/thoughtbot/ex_machina"
  @version "1.0.2"

  def project() do
    [
      app: :ex_machina,
      version: @version,
