defmodule Ueberauth.Strategy.IndieAuth.MixProject do use Mix.Project @description "Provides IndieWeb authentication (IndieAuth) support to Ueberauth." def project do [ app: :ueberauth_indieauth, version: "0.0.2", elixir: "~> 1.7", elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :prod, build_embedded: Mix.env() == :prod, description: @description, package: package(), homepage_url: "https://indieweb.org/", docs: [ source_url: "https://git.jacky.wtf/indieweb/ueberauth_indieauth", source_url_pattern: "https://git.jacky.wtf/indieweb/ueberauth_indieauth/src/branch/master/%{path}#L%{line}" ], deps: deps() ] end defp package() do [ description: @description, licenses: ["APGL v3.0"], links: %{ "Source Code" => "https://git.jacky.wtf/indieweb/ueberauth_indieauth", "GitHub Mirror" => "https://github.com/blackaf/ueberauth_indieauth", "IndieWeb" => "https://indieweb.org", "IndieAuth spec" => "https://indieauth.spec.indieweb.org" } ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_applications: [:logger, :ueberauth] ] end defp elixirc_paths(:test), do: ["lib", "test/support"] defp elixirc_paths(_), do: ["lib"] # Run "mix help deps" to learn about dependencies. defp deps do [ {:ex_doc, ">= 0.0.0", only: :dev}, {:indieweb, ">= 0.0.0"}, {:oauth2, "~> 0.9"}, {:ueberauth, "~> 0.6.1", optional: true}, {:apex, "~> 1.2", only: [:dev, :test]}, {:jason, "~> 1.1", optional: true}, {:fake_server, "~> 2.1", only: :test}, {:faker, "~> 0.12.0", only: [:test, :dev]} ] end end