2022-07-21 15:47:19 +00:00
|
|
|
# SPDX-FileCopyrightText: 2017-2019 Pleroma Authors <https://pleroma.social/>
|
|
|
|
# SPDX-License-Identifier: LGPL-3.0-only
|
|
|
|
|
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",
|
2024-06-12 17:20:28 +00:00
|
|
|
version: "0.1.3",
|
2019-05-14 16:55:11 +00:00
|
|
|
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
|
|
|
|
[
|
2020-11-17 18:06:52 +00:00
|
|
|
extra_applications: [:logger, :public_key]
|
2019-05-14 16:55:11 +00:00
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
# Run "mix help deps" to learn about dependencies.
|
|
|
|
defp deps do
|
|
|
|
[
|
2022-03-07 13:56:21 +00:00
|
|
|
{:credo, "~> 1.0", only: [:dev, :test], runtime: false},
|
2019-05-14 16:58:34 +00:00
|
|
|
{:ex_doc, "~> 0.19", only: :dev, runtime: false},
|
2022-03-07 13:56:21 +00:00
|
|
|
{:dialyxir, "~> 1.1.0", only: [:dev], runtime: false}
|
2019-05-14 16:55:11 +00:00
|
|
|
]
|
|
|
|
end
|
|
|
|
|
2020-07-23 17:13:29 +00:00
|
|
|
defp package do
|
|
|
|
[
|
2021-09-22 15:49:10 +00:00
|
|
|
licenses: ["LGPL-3.0-only"],
|
2020-07-23 17:13:29 +00:00
|
|
|
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
|