defmodule NLdoc.Ecto.MixProject do use Mix.Project @name "NLdoc.Ecto" @source_url "https://gitlab.com/logius/nldoc/lib/elixir/nldoc_ecto" def project do [ app: :nldoc_ecto, version: "1.0.4", elixir: "~> 1.17", deps: deps(), dialyzer: [plt_add_apps: [:inets]], elixirc_paths: elixirc_paths(Mix.env()), elixirc_options: [warnings_as_errors: true], preferred_cli_env: [ coveralls: :test, "coveralls.detail": :test, "coveralls.post": :test, "coveralls.html": :test, "coveralls.cobertura": :test ], test_coverage: [tool: ExCoveralls], # Docs and publishing name: @name, source_url: @source_url, description: "Ecto utilities for use in NLdoc.", docs: &docs/0, package: [ licenses: ["EUPL-1.2"], links: %{ "EUPL-1.2 License" => "https://joinup.ec.europa.eu/software/page/eupl", "Source" => @source_url } ] ] end defp docs do [ extras: ["README.md", "CHANGELOG.md"] ] end def elixirc_paths(_), do: ["lib"] # Run "mix help compile.app" to learn about applications. def application do [] end # Run "mix help deps" to learn about dependencies. defp deps do [ {:ecto, "~> 3.12"}, # Testing: coverage, JUnit-style test reports for CI, mocking and snapshot testing. {:excoveralls, "~> 0.18", only: :test}, # Linting & do {:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false}, {:credo, "~> 1.7", only: [:dev, :test], runtime: false}, # Dependency auditing {:mix_audit, "~> 2.1", only: [:dev, :test], runtime: false}, # Docs {:ex_doc, "~> 0.37", only: :dev, runtime: false} ] end end