2019-05-14 16:55:11 +00:00
|
|
|
defmodule HttpSignatures.MixProject do
|
|
|
|
use Mix.Project
|
|
|
|
|
|
|
|
def project do
|
|
|
|
[
|
|
|
|
app: :http_signatures,
|
2020-07-23 17:13:29 +00:00
|
|
|
description: "Library for manipulating and validating HTTP signatures",
|
2019-05-14 16:55:11 +00:00
|
|
|
version: "0.1.0",
|
|
|
|
elixir: "~> 1.7",
|
|
|
|
elixirc_options: [warnings_as_errors: true],
|
|
|
|
elixirc_paths: elixirc_paths(Mix.env()),
|
|
|
|
start_permanent: Mix.env() == :prod,
|
2020-07-23 17:13:29 +00:00
|
|
|
deps: deps(),
|
|
|
|
package: package()
|
2019-05-14 16:55:11 +00:00
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
# Run "mix help compile.app" to learn about applications.
|
|
|
|
def application do
|
|
|
|
[
|
|
|
|
extra_applications: [:logger]
|
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
# Run "mix help deps" to learn about dependencies.
|
|
|
|
defp deps do
|
|
|
|
[
|
2019-05-14 16:58:34 +00:00
|
|
|
{:credo, "~> 1.0.0", only: [:dev, :test], runtime: false},
|
|
|
|
{:ex_doc, "~> 0.19", only: :dev, runtime: false},
|
|
|
|
{:dialyxir, "~> 1.0.0-rc.5", only: [:dev], runtime: false}
|
2019-05-14 16:55:11 +00:00
|
|
|
]
|
|
|
|
end
|
|
|
|
|
2020-07-23 17:13:29 +00:00
|
|
|
defp package do
|
|
|
|
[
|
|
|
|
licenses: ["LGPLv3"],
|
|
|
|
links: %{"GitLab" => "https://git.pleroma.social/pleroma/elixir-libraries/http_signatures"}
|
|
|
|
]
|
|
|
|
end
|
|
|
|
|
2019-05-14 16:55:11 +00:00
|
|
|
defp elixirc_paths(:test), do: ["lib", "test/support"]
|
|
|
|
defp elixirc_paths(_), do: ["lib"]
|
|
|
|
end
|