~cosmicrose/hex_licenses

ref: 9234bf8dfabfc22397bf2490320e6caa99fecd11 hex_licenses/mix.exs -rw-r--r-- 1.3 KiB
9234bf8dRosa Richter Add v0.3.0 to changelog 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# SPDX-FileCopyrightText: 2021 Rosa Richter
#
# SPDX-License-Identifier: MIT

defmodule HexLicenses.MixProject do
  use Mix.Project

  def project do
    [
      app: :hex_licenses,
      description: "Mix tasks to help you use open-source licenses",
      version: "0.2.0",
      elixir: "~> 1.11",
      start_permanent: Mix.env() == :prod,
      package: package(),
      deps: deps()
    ]
  end

  # Run "mix help compile.app" to learn about applications.
  def application do
    [
      extra_applications: [:logger]
    ]
  end

  defp package do
    [
      maintainers: ["Rosa Richter"],
      licenses: ["MIT", "CC-BY-4.0", "CC-BY-3.0", "CC0-1.0"],
      links: %{
        "GitHub" => "https://github.com/Cantido/hex_licenses",
        "sourcehut" => "https://sr.ht/~cosmicrose/hex_licenses",
        "Sponsor" => "https://liberapay.com/rosa"
      }
    ]
  end

  # Run "mix help deps" to learn about dependencies.
  defp deps do
    [
      # {:dep_from_hexpm, "~> 0.3.0"},
      # {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
      {:httpoison, "~> 1.8", optional: true},
      {:poison, "~> 3.0", optional: true},
      {:credo, "~> 1.5", only: [:dev], runtime: false},
      {:ex_doc, "~> 0.25", only: [:dev], runtime: false}
    ]
  end
end