# Generated by usvc-1.14.1
# Feel free to adjust, it will not be overridden

defmodule GoferClient.Mixfile do
  use Mix.Project

  def project do
    [
      app: :gofer_client,
      version: "0.2.0",
      elixir: "~> 1.11",
      build_embedded: Mix.env == :prod,
      start_permanent: Mix.env == :prod,
      deps: deps(),
      aliases: aliases()
    ]
  end

  # Configuration for the OTP application
  #
  # Type "mix help compile.app" for more information
  def application do
    # Specify extra applications you'll use from Erlang/Elixir
    [
      extra_applications: [:logger],
      env: [mix_env: Mix.env()],
      mod: {GoferClient.Application, []}
    ]
  end

  # Dependencies can be Hex packages:
  #
  #   {:my_dep, "~> 0.3.0"}
  #
  # Or git/path repositories:
  #
  #   {:my_dep, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
  #
  # Type "mix help deps" for more examples and options
  defp deps do
    [
      {:grpc, "~> 0.3"},
      {:log_tee, git: "https://github.com/renderedtext/log-tee.git"},
      {:uuid, "~> 1.1"},
      {:credo, "~> 1.4", only: [:dev, :test], runtime: false},
      {:proto, path: "../proto"},
      {:util, github: "renderedtext/elixir-util"},
      {:junit_formatter, "~> 3.1", only: [:test]}
    ]
  end

  defp aliases() do
    [
      "deps.local": ["local.hex --force", "local.rebar --force"],
      "deps.setup": ["deps.local", "deps.get"],
      setup: ["deps.setup", "ecto.setup"]
    ]
  end
end
