Current section

Files

Jump to
moss mix.exs
Raw

mix.exs

defmodule Moss.MixProject do
  use Mix.Project

  def project do
    [
      app: :moss,
      version: "1.2.0",
      elixir: "~> 1.15",
      start_permanent: Mix.env() == :prod,
      elixirc_paths: elixirc_paths(Mix.env()),
      deps: deps(),
      package: package()
    ]
  end

  defp package do
    [
      description: "Elixir SDK for semantic search with on-device AI capabilities",
      # PolyForm Shield is not an SPDX-listed license, and hex.pm now
      # rejects non-SPDX identifiers; SPDX's escape hatch for that is a
      # LicenseRef. The full license text ships in LICENSE.txt.
      licenses: ["LicenseRef-PolyForm-Shield-1.0.0"],
      files: ~w(lib mix.exs README.md LICENSE.txt CHANGELOG.md),
      links: %{
        "GitHub" => "https://github.com/usemoss/moss",
        "Docs" => "https://docs.moss.dev"
      }
    ]
  end

  defp elixirc_paths(:test), do: ["lib", "test/support"]
  defp elixirc_paths(_), do: ["lib"]

  def application do
    [extra_applications: [:logger]]
  end

  defp deps do
    [
      {:moss_core, "~> 0.19.0"},
      {:req, "~> 0.6"},
      {:uniq, "~> 0.6"},
      {:ex_doc, "~> 0.40", only: :dev, runtime: false}
    ]
  end
end