Current section
Files
Jump to
Current section
Files
mix.exs
defmodule Again.MixProject do
use Mix.Project
@version "0.1.1"
@source_url "https://github.com/alexkuang/again"
def project do
[
app: :again,
version: @version,
elixir: "~> 1.15",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),
description: "A library for retrying work again... and again... and again...",
package: package(),
dialyzer: dialyzer_settings()
]
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
[
{:dialyxir, "~> 1.4", only: [:dev], runtime: false},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:mox, "~> 1.1", only: :test}
]
end
defp dialyzer_settings do
[
plt_file: {:no_warn, "priv/plts/again.plt"},
plt_add_apps: [:mix]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp docs do
[
extras: [
"LICENSE.md": [title: "License"],
"README.md": [title: "Overview"]
],
main: "readme",
source_url: @source_url,
source_ref: "v#{@version}",
formatters: ["html"]
]
end
defp package do
[
maintainers: ["Alex Kuang"],
licenses: ["Apache-2.0"],
links: %{"GitHub" => @source_url}
]
end
end