Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add quick installation for maven to the registry #5330

Merged
merged 10 commits into from
Nov 11, 2024
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
svrnm marked this conversation as resolved.
Show resolved Hide resolved
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 }}'
}
```
Loading