---
title: "Using a BOM"
url: https://docs.sentry.io/platforms/java/configuration/bill-of-materials/
---

# Using a BOM | Sentry for Java

When you are using multiple Sentry dependencies, you can avoid specifying the version of each dependency with a *BOM* or *Bill Of Materials*.

Using Maven, add the following to the `dependencyManagement` section in your `pom.xml`:

`pom.xml`

```xml
<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>io.sentry</groupId>
            <artifactId>sentry-bom</artifactId>
            <version>8.37.1</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>
```

Then use dependencies without specifying a version, for example:

`pom.xml`

```xml
<dependency>
    <groupId>io.sentry</groupId>
    <artifactId>sentry</artifactId>
</dependency>
<dependency>
    <groupId>io.sentry</groupId>
    <artifactId>sentry-logback</artifactId>
</dependency>
```

Using Gradle 5.0 or higher, you can add the following to the `dependencies` section in your `build.gradle`:

`build.gradle`

```groovy
implementation platform('io.sentry:sentry-bom:8.37.1') //import bom
implementation('io.sentry:sentry') //no version specified
implementation('io.sentry:sentry-logback') //no version specified
```
