-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathmix.exs
126 lines (117 loc) · 3.36 KB
/
mix.exs
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
defmodule Spawn.MixProject do
use Mix.Project
Code.require_file("internal_versions.exs", "./priv")
@app :spawn
@version "0.0.0-local.dev"
@site "https://eigr.io/"
@source_url "https://github.com/eigr/spawn"
def project do
[
app: @app,
version: @version,
description: "Spawn is the core lib for Spawn Actors System",
source_url: @source_url,
homepage_url: @site,
build_path: "_build",
config_path: "config/config.exs",
deps_path: "deps",
lockfile: "mix.lock",
elixir: "~> 1.15",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
docs: docs(),
aliases: [
publish: &InternalVersions.publish/1,
rewrite_versions: &InternalVersions.rewrite_versions/1
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [
:logger,
:retry,
:opentelemetry_exporter,
:opentelemetry
]
]
end
defp package do
[
files: ["lib", "mix.exs", "priv", "README.md", "LICENSE"],
licenses: ["Apache-2.0"],
links: %{GitHub: @source_url, Site: @site}
]
end
defp docs do
[
main: "readme",
source_url: @source_url,
source_ref: "v#{@version}",
formatter_opts: [gfm: true],
extras: [
"README.md"
]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
# Core deps
{:decimal, "~> 2.0"},
{:decorator, "~> 1.4"},
{:iter, "~> 0.1.2"},
{:nebulex, "~> 2.5"},
{:shards, "~> 1.1"},
{:telemetry, "~> 1.0"},
{:castore, "~> 1.0"},
{:protobuf, "~> 0.14"},
{:protobuf_generate, "~> 0.1"},
{:grpc, "~> 0.8"},
{:grpc_reflection, "~> 0.1"},
{:finch, "~> 0.18"},
{:flame_k8s_backend, "~> 0.5"},
{:retry, "~> 0.17"},
{:flow, "~> 1.2"},
{:libcluster, "~> 3.3"},
{:horde, "~> 0.9"},
{:highlander, "~> 0.2.1"},
{:phoenix_pubsub, "~> 2.1"},
{:phoenix_pubsub_nats, "~> 0.2"},
{:jason, "~> 1.3"},
{:gnat, "~> 1.9"},
{:jetstream, "~> 0.0.9"},
{:k8s, "~> 2.2"},
{:k8s_webhoox, "~> 0.2"},
{:uuid, "~> 1.1"},
{:broadway, "~> 1.1"},
# temporary until bandit releases 1.5.4
{:hpax, "~> 0.1.1"},
# Metrics & Tracing deps
{:telemetry_poller, "~> 1.0"},
{:telemetry_metrics, "~> 1.0"},
{:telemetry_metrics_prometheus_core, "~> 1.2.1"},
{:opentelemetry_api, "~> 1.0"},
{:opentelemetry, "~> 1.0"},
{:opentelemetry_ecto, "~> 1.2"},
{:opentelemetry_exporter, "~> 1.0"},
# Statestores deps
{:spawn_statestores_mariadb,
path: "./spawn_statestores/statestores_mariadb", optional: false},
{:spawn_statestores_postgres,
path: "./spawn_statestores/statestores_postgres", optional: false},
{:spawn_statestores_native,
path: "./spawn_statestores/statestores_native", optional: false},
{:pluggable, "~> 1.0"},
# Non runtime deps
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false}
]
end
defp elixirc_paths(:test),
do: ["lib", "test/support", "spawn_statestores/statestores/test/support"]
defp elixirc_paths(_), do: ["lib"]
end