Skip to content

Commit 2e5649a

Browse files
mercybasseysvrnm
andauthored
Add quick installation for mavent to the registry (#5330)
Signed-off-by: svrnm <[email protected]> Co-authored-by: Severin Neumann <[email protected]>
1 parent b58496a commit 2e5649a

File tree

4 files changed

+31
-0
lines changed

4 files changed

+31
-0
lines changed

.htmltest.yml

+1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ IgnoreURLs: # list of regexs of paths or URLs to be ignored
8181
- ^https://www.farfetch.com
8282
- ^https://www.zocdoc.com
8383
- ^https://x.com
84+
- ^https://maven.org
8485
# OTel Google calendar - curl returns 200, but the link checker gets a 401:
8586
- ^https://calendar.google.com/calendar/embed\?src=google.com_b79e3e90j7bbsa2n2p5an5lf60%40group.calendar.google.com
8687
# YouTube playlists sometimes give a 404, although they give a 200 when accessed via browser:

data/registry/instrumentation-java-okhttp.yml

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# cspell:ignore okhttp
12
title: okHTTP Instrumentation
23
registryType: instrumentation
34
language: java
@@ -13,4 +14,8 @@ authors:
1314
urls:
1415
repo: https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/instrumentation/okhttp
1516
createdAt: 2020-11-05
17+
package:
18+
registry: maven
19+
name: io.opentelemetry.instrumentation/opentelemetry-okhttp-3.0
20+
version: 2.9.0-alpha
1621
isFirstParty: false

layouts/partials/ecosystem/registry/entry.html

+4
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@
4646
"installLine" "cargo add %s"
4747
"installTemplate" "ecosystem/registry/quickinstall/default.md"
4848
"icon" "fab fa-rust")
49+
"maven" (dict
50+
"urlPattern" "https://maven.org/artifact/%s"
51+
"installTemplate" "ecosystem/registry/quickinstall/maven.md"
52+
"icon" "fa-solid fa-feather")
4953
-}}
5054

5155
{{ $isNative := and (or (eq .registryType "instrumentation") (eq .registryType "application integration")) (.isNative) }}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
##### Maven
2+
3+
Add the following dependency in your `pom.xml` file to install this package.
4+
5+
```xml
6+
<dependency>
7+
<groupId>{{ index (split .name "/") 0 }}</groupId>
8+
<artifactId>{{ index (split .name "/") 1 }}</artifactId>
9+
<version>{{ .version }}</version>
10+
</dependency>
11+
```
12+
13+
##### Gradle
14+
15+
Add the following dependency in your `build.gradle` file to install this package:
16+
17+
```groovy
18+
dependencies {
19+
implementation '{{ index (split .name "/") 0 }}:{{ index (split .name "/") 1 }}:{{ .version }}'
20+
}
21+
```

0 commit comments

Comments
 (0)