mix.exs: Add fields for hex publishing

This commit is contained in:
Haelwenn (lanodan) Monnier 2020-07-23 19:13:29 +02:00
parent 293d77bb6f
commit de58aed3cb
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE

11
mix.exs
View file

@ -4,12 +4,14 @@ defmodule HttpSignatures.MixProject do
def project do
[
app: :http_signatures,
description: "Library for manipulating and validating HTTP signatures",
version: "0.1.0",
elixir: "~> 1.7",
elixirc_options: [warnings_as_errors: true],
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps()
deps: deps(),
package: package()
]
end
@ -29,6 +31,13 @@ defmodule HttpSignatures.MixProject do
]
end
defp package do
[
licenses: ["LGPLv3"],
links: %{"GitLab" => "https://git.pleroma.social/pleroma/elixir-libraries/http_signatures"}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
end