Skip to content

Commit

Permalink
Add quick installation for maven to the registry (open-telemetry#5330)
Browse files Browse the repository at this point in the history
Signed-off-by: svrnm <[email protected]>
Co-authored-by: Severin Neumann <[email protected]>
  • Loading branch information
2 people authored and drewby committed Nov 21, 2024
1 parent b176b96 commit be02c5d
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions .htmltest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ IgnoreURLs: # list of regexs of paths or URLs to be ignored
- ^https://www.farfetch.com
- ^https://www.zocdoc.com
- ^https://x.com
- ^https://maven.org
# OTel Google calendar - curl returns 200, but the link checker gets a 401:
- ^https://calendar.google.com/calendar/embed\?src=google.com_b79e3e90j7bbsa2n2p5an5lf60%40group.calendar.google.com
# YouTube playlists sometimes give a 404, although they give a 200 when accessed via browser:
Expand Down
5 changes: 5 additions & 0 deletions data/registry/instrumentation-java-okhttp.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# cspell:ignore okhttp
title: okHTTP Instrumentation
registryType: instrumentation
language: java
Expand All @@ -13,4 +14,8 @@ authors:
urls:
repo: https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/instrumentation/okhttp
createdAt: 2020-11-05
package:
registry: maven
name: io.opentelemetry.instrumentation/opentelemetry-okhttp-3.0
version: 2.9.0-alpha
isFirstParty: false
4 changes: 4 additions & 0 deletions layouts/partials/ecosystem/registry/entry.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@
"installLine" "cargo add %s"
"installTemplate" "ecosystem/registry/quickinstall/default.md"
"icon" "fab fa-rust")
"maven" (dict
"urlPattern" "https://maven.org/artifact/%s"
"installTemplate" "ecosystem/registry/quickinstall/maven.md"
"icon" "fa-solid fa-feather")
-}}

{{ $isNative := and (or (eq .registryType "instrumentation") (eq .registryType "application integration")) (.isNative) }}
Expand Down
21 changes: 21 additions & 0 deletions layouts/partials/ecosystem/registry/quickinstall/maven.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
##### Maven

Add the following dependency in your `pom.xml` file to install this package.

```xml
<dependency>
<groupId>{{ index (split .name "/") 0 }}</groupId>
<artifactId>{{ index (split .name "/") 1 }}</artifactId>
<version>{{ .version }}</version>
</dependency>
```

##### Gradle

Add the following dependency in your `build.gradle` file to install this package:

```groovy
dependencies {
implementation '{{ index (split .name "/") 0 }}:{{ index (split .name "/") 1 }}:{{ .version }}'
}
```

0 comments on commit be02c5d

Please sign in to comment.