defmodule Shipex.MixProject do use Mix.Project def project do [ app: :shipex, version: File.read!("VERSION"), elixir: "~> 1.18", elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :prod, description: description(), package: package(), name: "Shipex", source_url: "https://github.com/marciotoze/shipex", homepage_url: "https://github.com/marciotoze/shipex", deps: deps() ] end defp elixirc_paths(:test), do: ["lib", "test/support"] defp elixirc_paths(_), do: ["lib"] # 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 [ {:correios_ex, "~> 0.2"}, {:credo, "~> 1.7", only: [:dev, :test], runtime: false}, {:ex_doc, "~> 0.34", only: :dev, runtime: false}, {:ex_machina, "~> 2.8.0", only: :test}, {:telemetry, "~> 1.0"}, {:tzdata, "~> 1.1"} ] end defp description() do "A Brazilian shipping rates calculation library." end defp package() do [ name: "shipex", files: ~w(lib .formatter.exs mix.exs VERSION README* LICENSE*), licenses: ["MIT"], links: %{"GitHub" => "https://github.com/marciotoze/shipex"} ] end end