forked from pedestal/pedestal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeps.edn
108 lines (89 loc) · 4.59 KB
/
deps.edn
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
; Copyright 2023-2024 Nubank NA
; Copyright 2022 Cognitect, Inc.
; The use and distribution terms for this software are covered by the
; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0)
; which can be found in the file epl-v10.html at the root of this distribution.
;
; By using this software in any fashion, you are agreeing to be bound by
; the terms of this license.
;
; You must not remove this notice, or any other, from this software.
{:paths ["test"
"dev"
"bench"
"resources"]
;; Because no artifact is generated from this module, test-only dependencies are top-level.
:deps {criterium/criterium {:mvn/version "0.4.6"}
nubank/matcher-combinators {:mvn/version "3.9.1"}
nubank/mockfn {:mvn/version "0.7.0"}
expound/expound {:mvn/version "0.9.0"}
medley/medley {:mvn/version "1.4.0"}
org.clojure/java.classpath {:mvn/version "1.1.0"}
org.clojure/tools.namespace {:mvn/version "1.5.0"}
org.clojure/data.json {:mvn/version "2.5.0"}
clj-http/clj-http {:mvn/version "3.13.0"}
hato/hato {:mvn/version "1.0.0"}
org.eclipse.jetty/jetty-servlets {:mvn/version "11.0.24"}
;; Include *all* the other modules
io.pedestal/pedestal.log {:local/root "../log"}
io.pedestal/pedestal.service {:local/root "../service"}
;; Recapitulate transitive dependencies of pedestal.service since the
;; :local alias isn't carried through when resolving the local dependencies.
io.pedestal/pedestal.interceptor {:local/root "../interceptor"}
io.pedestal/pedestal.route {:local/root "../route"}
io.pedestal/pedestal.jetty {:local/root "../jetty"}
io.pedestal/pedestal.telemetry {:local/root "../telemetry"}
io.pedestal/pedestal.common {:local/root "../common"}
io.pedestal/pedestal.error {:local/root "../error"}
io.github.hlship/trace {:mvn/version "1.4"}
com.walmartlabs/test-reporting {:mvn/version "1.2"}
com.clojure-goes-fast/clj-async-profiler {:mvn/version "1.3.3"}
;; For proper reloading of code in REPL
io.github.tonsky/clj-reload {:mvn/version "0.7.1"}
io.github.cognitect-labs/test-runner
{:git/tag "v0.5.1" :git/sha "dfb30dd"}}
:aliases
{:coverage
{:paths ["test" "resources"]
:extra-deps {cloverage/cloverage {:mvn/version "1.2.4"}}
:jvm-opts ["-Dcollecting-coverage=true"]
:main-opts ["--main" "cloverage.coverage"
"--test-ns-path" "test"
"--ns-regex" "\\Qio.pedestal.\\E.*"
"--test-ns-regex" ".*-test"
"--ns-exclude-regex" ".*test"]}
:1.12
{:override-deps {org.clojure/clojure {:mvn/version "1.12.0"}}}
:1.10
{:override-deps {org.clojure/clojure {:mvn/version "1.10.3"}}}
;; clj -X:test
:test
{
:jvm-opts ["-Djdk.attach.allowAttachSelf"]
;; Need extra test runner to avoid test hangs
:exec-fn io.pedestal.test-runner/test}
:otel
;; Enable the implementations of OpenTelemetry and configure sources, to allow experimenting at the REPL.
{:extra-deps {io.opentelemetry/opentelemetry-sdk {:mvn/version "1.42.1"}
io.opentelemetry/opentelemetry-sdk-metrics {:mvn/version "1.42.1"}
io.opentelemetry/opentelemetry-sdk-extension-autoconfigure {:mvn/version "1.42.1"}
io.opentelemetry/opentelemetry-exporter-otlp {:mvn/version "1.42.1"}
io.opentelemetry/opentelemetry-exporter-logging {:mvn/version "1.42.1"}}
:jvm-opts ["-Dotel.exporter.oltp.endpoint=http://localhost:4317"
;; Without this, get a warning and no-op behavior:
"-Dotel.java.global-autoconfigure.enabled=true"
"-Dotel.resource.attributes=service.name=pedestal-demo-sdk"
"-Dotel.metrics.exporter=logging"]}
:otel-agent
{:jvm-opts ["-Dotel.exporter.oltp.endpoint=http://localhost:4317"
"-Dotel.resource.attributes=service.name=pedestal-demo-agent"
"-Dotel.metrics.exporter=none"
;; Must download this via
;; curl https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/latest/download/opentelemetry-javaagent.jar \
;; -O --output-dir target
"-javaagent:target/opentelemetry-javaagent.jar"]}
;; clj -X:bench-log
;; Runs a benchmark of io.pedestal.log (~ 44ns), then clojure.tools.logging (~ 57 ns),
;; then SL4J with pr-str (~ 28 ns) -- this takes several minutes.
:bench-log
{:exec-fn io.pedestal.log-bench/run-benchmarks}}}