defmodule Paystack.MixProject do use Mix.Project def project do [ app: :paystack, version: "0.6.0", elixir: "~> 1.12", start_permanent: Mix.env() == :prod, deps: deps(), elixirc_paths: elixirc_paths(Mix.env()), name: "Paystack", package: [ files: ["lib", "mix.exs", "README.md"], maintainers: ["Tosin Soremekun"], licenses: ["MIT"], links: %{ "Github" => "https://github.com/therealsmat/paystack", } ], description: "An elixir library for paystack", source_url: "https://github.com/therealsmat/paystack", docs: [ main: "Paystack", groups_for_modules: groups_for_modules(), extras: ["README.md"] ] ] 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 [ {:mox, "~> 1.0"}, {:httpoison, "~> 1.8"}, {:jason, "~> 1.3"}, {:telemetry, "~> 1.0"}, {:ex_doc, "~> 0.28.0", only: :dev, runtime: false} ] end defp elixirc_paths(:test), do: ["lib", "test/support"] defp elixirc_paths(_), do: ["lib"] defp groups_for_modules() do [ "Response": [ Paystack.Response ], "Core": [ Paystack.Transaction, Paystack.SplitPayment, Paystack.Customer ] ] end end