defmodule ElixirTorrent.MixProject do use Mix.Project def project do [ app: :elixir_torrent, version: "0.1.0", elixir: "~> 1.19.5", start_permanent: Mix.env() == :prod, description: description(), package: package(), source_url: source_url(), deps: deps(), escript: escript() ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_applications: [:logger], mod: {ElixirTorrentApplication, []} ] end # Run "mix help deps" to learn about dependencies. defp deps do [ {:dialyxir, "~> 1.4", only: [:dev], runtime: false}, {:bento, "~> 1.0.0"}, {:recon, "~> 2.5.6"}, {:logger_file_backend, "~> 0.0.14"}, {:logger_backends, "~> 1.0"}, {:httpoison, "~> 2.3"}, {:ex_doc, ">= 0.0.0", only: :dev, runtime: false}, {:mock, "~> 0.3.9", only: :test} # {:dep_from_hexpm, "~> 0.3.0"}, # {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}, ] end defp escript do [main_module: ElixirTorrent] end @spec description() :: String.t() defp description do "BitTorrent client engine written in Elixir." end @spec source_url() :: String.t() defp source_url do "https://github.com/danielurumov/ElixirTorrent" end @spec package() :: keyword() defp package do [ licenses: ["MIT"], links: %{"GitHub" => source_url()}, files: [ "lib", "config", "mix.exs", "mix.lock", "README.md", "LICENSE", ".formatter.exs" ] ] end end