forked from eigr/spawn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
111 lines (101 loc) · 3.1 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
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.14",
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"},
{:duration_tc, "~> 0.1.0"},
{:protobuf, "~> 0.11"},
{:finch, "~> 0.12"},
{:retry, "~> 0.17"},
{:tesla, "~> 1.4"},
{:flow, "~> 1.2"},
{:vapor, "~> 0.10"},
{:libcluster, "~> 3.3"},
{:horde, "~> 0.8"},
{:highlander, "~> 0.2.1"},
{:phoenix_pubsub, "~> 2.1"},
{:phoenix_pubsub_nats, "~> 0.1.0"},
{:jason, "~> 1.3"},
# Metrics & Tracing deps
{:telemetry_poller, "~> 1.0"},
{:telemetry_metrics, "~> 0.6.1"},
{:telemetry_metrics_prometheus_core, "~> 1.1"},
{:opentelemetry_api, "~> 1.0"},
{:opentelemetry, "~> 1.0"},
{:opentelemetry_exporter, "~> 1.0"},
# Statestores deps
{:spawn_statestores_mssql, path: "./spawn_statestores/statestores_mssql", optional: false},
{:spawn_statestores_mysql, path: "./spawn_statestores/statestores_mysql", optional: false},
{:spawn_statestores_postgres, path: "./spawn_statestores/statestores_postgres", optional: false},
{:spawn_statestores_sqlite, path: "./spawn_statestores/statestores_sqlite", optional: false},
{:spawn_statestores_cockroachdb, path: "./spawn_statestores/statestores_cockroachdb", optional: false},
# Non runtime deps
{:faker, "~> 0.17", only: :test},
{:mimic, "~> 1.7", only: :test},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:pluggable, "~> 1.0.1", only: :dev, runtime: false}
]
end
defp elixirc_paths(:test),
do: ["lib", "test/support", "spawn_statestores/statestores/test/support"]
defp elixirc_paths(_), do: ["lib"]
end