defmodule MLLP.MixProject do use Mix.Project def project do [ app: :mllp, version: String.trim(File.read!("./VERSION")), elixir: "~> 1.7", start_permanent: Mix.env() == :prod, deps: deps(), description: description(), elixirc_paths: elixirc_paths(Mix.env()), dialyzer: dialyzer_opts(), preferred_cli_env: [ coveralls: :test, "coveralls.detail": :test, "coveralls.post": :test, "coveralls.html": :test ], test_coverage: [tool: ExCoveralls], package: package(), docs: docs() ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_applications: [:logger], mod: {MLLP.Application, []} ] end # Run "mix help deps" to learn about dependencies. defp deps do [ {:telemetry, "~> 1.0"}, {:ranch, "~> 1.8.0"}, {:elixir_hl7, "~> 0.8.0"}, {:backoff, "~> 1.1.6"}, {:ex_doc, "~> 0.24.2", only: :dev, runtime: false}, {:dialyxir, "~> 1.1.0", only: [:dev, :test], runtime: false}, {:mix_test_watch, "~> 1.0.2", only: :dev, runtime: false}, {:mox, "~> 1.0.0", only: :test}, {:excoveralls, "~> 0.14.4", only: :test, runtime: false} ] end # Specifies which paths to compile per environment. defp elixirc_paths(:test), do: ["lib", "test/support"] defp elixirc_paths(_), do: ["lib"] defp dialyzer_opts do [ remove_defaults: [:unknown], plt_core_path: "priv/plts", flags: [:unmatched_returns, :unknown], plt_file: {:no_warn, "priv/plts/mllp.plt"} ] end defp description() do "An Elixir library for transporting HL7 messages via MLLP (Minimal Lower Layer Protocol)" end defp package() do [ files: ~w(lib .formatter.exs mix.exs README* LICENSE* VERSION), licenses: ["Apache-2.0"], links: %{"GitHub" => "https://github.com/HCA-Healthcare/elixir-mllp"} ] end defp docs() do [ # The main page in the docs main: "readme", extras: ["README.md"] ] end end