Skip to content

Commit

Permalink
Added code snippets for gradle, gradle(short) and gradle(kotlin)
Browse files Browse the repository at this point in the history
  • Loading branch information
mercybassey committed Oct 10, 2024
1 parent 72bcc3e commit 0c4cec4
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 12 deletions.
46 changes: 35 additions & 11 deletions layouts/partials/ecosystem/registry/quickinstall/maven.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,37 @@
### Maven

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

{{% tabpane text=true right=true %}}
{{% tab header="Maven" %}}
```xml
<dependency>
<groupId>{{ index (split .name "/") 0 }}</groupId>
<artifactId>{{ index (split .name "/") 1 }}</artifactId>
<version>{{ .version }}</version>
</dependency>
```
{{% /tab %}}
{{% /tabpane %}}
```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
implementation group: 'io.opentelemetry.instrumentation', name: 'opentelemetry-okhttp-3.0', version: '2.8.0-alpha'
```

**Gradle(short)**:
Add the following dependency in your `build.gradle` file:

```groovy
dependencies {
implementation 'io.opentelemetry.instrumentation:opentelemetry-okhttp-3.0:2.8.0-alpha'
}
```

**Gradle(kotlin)**:
Add the following dependency in your `build.gradle.kts` file:

```kotlin
dependencies {
implementation("io.opentelemetry.instrumentation:opentelemetry-okhttp-3.0:2.8.0-alpha")
}
```

0 comments on commit 0c4cec4

Please sign in to comment.