defmodule Needle.MixProject do use Mix.Project def project do if System.get_env("AS_UMBRELLA") == "1" do [ build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", lockfile: "../../mix.lock" ] else [] end ++ [ app: :needle, version: "0.9.0", elixir: "~> 1.10", elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :prod, description: "Universal foreign keys, virtual schemas, and shared data mixins", homepage_url: "https://github.com/bonfire-networks/needle", source_url: "https://github.com/bonfire-networks/needle", package: [ licenses: ["Apache 2"], links: %{ "Repository" => "https://github.com/bonfire-networks/needle", "Hexdocs" => "https://hexdocs.pm/needle" } ], docs: [ # The first page to display from the docs main: "readme", # extra pages to include extras: ["README.md"] ], deps: deps() ] end def application do [ extra_applications: [:logger, :crypto] ] end defp elixirc_paths(:test), do: ["test/support" | elixirc_paths(:dev)] defp elixirc_paths(_), do: ["lib"] defp deps do [ {:ecto_sql, "~> 3.13"}, {:typed_ecto_schema, "~> 0.4.1", runtime: false}, {:exto, "~> 0.4"}, {:needle_uid, "~> 0.0.2", # git: "https://github.com/bonfire-networks/needle_uid" }, {:telemetry, "~> 0.4 or ~> 1.0", optional: false}, {:ex_doc, ">= 0.0.0", only: :dev, runtime: false} ] end end