From 5b029e4bfe042fc40e4eb34fb08e01dd41460400 Mon Sep 17 00:00:00 2001 From: Bruno Garcia Date: Mon, 26 Jul 2021 19:14:30 -0400 Subject: [PATCH] Revert "Java: Add BOM docs. (#3832)" This reverts commit 21bf9c399c82c180efcabe90f259c8631512c265. --- .../getting-started-install/android.mdx | 2 - .../getting-started-install/java.jul.mdx | 8 ---- .../getting-started-install/java.log4j2.mdx | 8 ---- .../getting-started-install/java.logback.mdx | 8 ---- src/includes/getting-started-install/java.mdx | 2 - .../getting-started-install/java.servlet.mdx | 2 - .../java.spring-boot.mdx | 2 - .../getting-started-install/java.spring.mdx | 2 - .../configuration/bill-of-materials.mdx | 15 ------- .../configuration/bill-of-materials.mdx | 43 ------------------- 10 files changed, 92 deletions(-) delete mode 100644 src/platforms/android/configuration/bill-of-materials.mdx delete mode 100644 src/platforms/java/common/configuration/bill-of-materials.mdx diff --git a/src/includes/getting-started-install/android.mdx b/src/includes/getting-started-install/android.mdx index 92150817edba43..6837e66370757a 100644 --- a/src/includes/getting-started-install/android.mdx +++ b/src/includes/getting-started-install/android.mdx @@ -26,6 +26,4 @@ dependencies { Sentry's Android SDK depends on [Gson](https://github.com/google/gson) as a transitive dependency; the minimum required version is 2.7. -If you are using multiple Sentry dependencies, you can add a [bill of materials](/platforms/android/configuration/bill-of-materials) to avoid specifying the version of each dependency. - diff --git a/src/includes/getting-started-install/java.jul.mdx b/src/includes/getting-started-install/java.jul.mdx index 327ebb539eb016..785a8cdf7e7033 100644 --- a/src/includes/getting-started-install/java.jul.mdx +++ b/src/includes/getting-started-install/java.jul.mdx @@ -15,11 +15,3 @@ libraryDependencies += "io.sentry" % "sentry-jul" % "{{ packages.version('sentry ``` For other dependency managers, see the [central Maven repository](https://search.maven.org/artifact/io.sentry/sentry-jul). - - - -Sentry's Java SDK depends on [Gson](https://github.com/google/gson) as a transitive dependency; the minimum required version is 2.7. - -If you are using multiple Sentry dependencies, you can add a [bill of materials](/platforms/java/configuration/bill-of-materials) to avoid specifying the version of each dependency. - - diff --git a/src/includes/getting-started-install/java.log4j2.mdx b/src/includes/getting-started-install/java.log4j2.mdx index cd8d82096defc9..6d26450f6f7c8a 100644 --- a/src/includes/getting-started-install/java.log4j2.mdx +++ b/src/includes/getting-started-install/java.log4j2.mdx @@ -15,11 +15,3 @@ libraryDependencies += "io.sentry" % "sentry-log4j2" % "{{ packages.version('sen ``` For other dependency managers see the [central Maven repository](https://search.maven.org/artifact/io.sentry/sentry-log4j2). - - - -Sentry's Java SDK depends on [Gson](https://github.com/google/gson) as a transitive dependency; the minimum required version is 2.7. - -If you are using multiple Sentry dependencies, you can add a [bill of materials](/platforms/java/configuration/bill-of-materials) to avoid specifying the version of each dependency. - - diff --git a/src/includes/getting-started-install/java.logback.mdx b/src/includes/getting-started-install/java.logback.mdx index d5b12cd41812c6..d9345211924479 100644 --- a/src/includes/getting-started-install/java.logback.mdx +++ b/src/includes/getting-started-install/java.logback.mdx @@ -15,11 +15,3 @@ libraryDependencies += "io.sentry" % "sentry-logback" % "{{ packages.version('se ``` For other dependency managers, see the [central Maven repository](https://search.maven.org/artifact/io.sentry/sentry-logback). - - - -Sentry's Java SDK depends on [Gson](https://github.com/google/gson) as a transitive dependency; the minimum required version is 2.7. - -If you are using multiple Sentry dependencies, you can add a [bill of materials](/platforms/java/configuration/bill-of-materials) to avoid specifying the version of each dependency. - - diff --git a/src/includes/getting-started-install/java.mdx b/src/includes/getting-started-install/java.mdx index c6b72a4832915a..7ef6d7dc8daa66 100644 --- a/src/includes/getting-started-install/java.mdx +++ b/src/includes/getting-started-install/java.mdx @@ -26,6 +26,4 @@ libraryDependencies += "io.sentry" % "sentry" % "{{ packages.version('sentry.jav Sentry's Java SDK depends on [Gson](https://github.com/google/gson) as a transitive dependency; the minimum required version is 2.7. -If you are using multiple Sentry dependencies, you can add a [bill of materials](/platforms/java/configuration/bill-of-materials) to avoid specifying the version of each dependency. - diff --git a/src/includes/getting-started-install/java.servlet.mdx b/src/includes/getting-started-install/java.servlet.mdx index 8a40076c065a50..7a28516117590b 100644 --- a/src/includes/getting-started-install/java.servlet.mdx +++ b/src/includes/getting-started-install/java.servlet.mdx @@ -22,6 +22,4 @@ For other dependency managers, see the [central Maven repository](https://search Sentry's Java SDK depends on [Gson](https://github.com/google/gson) as a transitive dependency; the minimum required version is 2.7. -If you are using multiple Sentry dependencies, you can add a [bill of materials](/platforms/java/configuration/bill-of-materials) to avoid specifying the version of each dependency. - diff --git a/src/includes/getting-started-install/java.spring-boot.mdx b/src/includes/getting-started-install/java.spring-boot.mdx index d580e8033b92e2..32152b3e91704d 100644 --- a/src/includes/getting-started-install/java.spring-boot.mdx +++ b/src/includes/getting-started-install/java.spring-boot.mdx @@ -14,6 +14,4 @@ implementation 'io.sentry:sentry-spring-boot-starter:{{ packages.version('sentry Sentry's Java SDK depends on [Gson](https://github.com/google/gson) as a transitive dependency; the minimum required version is 2.7. -If you are using multiple Sentry dependencies, you can add a [bill of materials](/platforms/java/configuration/bill-of-materials) to avoid specifying the version of each dependency. - diff --git a/src/includes/getting-started-install/java.spring.mdx b/src/includes/getting-started-install/java.spring.mdx index c255c094236445..18ee1001dc8587 100644 --- a/src/includes/getting-started-install/java.spring.mdx +++ b/src/includes/getting-started-install/java.spring.mdx @@ -20,6 +20,4 @@ For other dependency managers see the [central Maven repository](https://search. Sentry's Java SDK depends on [Gson](https://github.com/google/gson) as a transitive dependency; the minimum required version is 2.7. -If you are using multiple Sentry dependencies, you can add a [bill of materials](/platforms/java/configuration/bill-of-materials) to avoid specifying the version of each dependency. - diff --git a/src/platforms/android/configuration/bill-of-materials.mdx b/src/platforms/android/configuration/bill-of-materials.mdx deleted file mode 100644 index ddbf3cc6638e9d..00000000000000 --- a/src/platforms/android/configuration/bill-of-materials.mdx +++ /dev/null @@ -1,15 +0,0 @@ ---- -title: Using a BOM -description: "Learn more about using a bill of materials with multiple Sentry dependencies." -sidebar_order: 1000 ---- - -When you are using multiple Sentry dependencies, you can avoid specifying the version of each dependency with a *BOM* or *Bill Of Materials*. - -Using Gradle 5.0 or higher, you can add the following to the `dependencies` section in your `build.gradle`: - -```groovy {filename:build.gradle} -implementation platform('io.sentry:sentry-bom:{{ packages.version('sentry.java', '5.1.0') }}') //import bom -implementation('io.sentry:sentry-android') //no version specified -implementation('io.sentry:sentry-android-fragment') //no version specified -``` diff --git a/src/platforms/java/common/configuration/bill-of-materials.mdx b/src/platforms/java/common/configuration/bill-of-materials.mdx deleted file mode 100644 index bca250ba19d222..00000000000000 --- a/src/platforms/java/common/configuration/bill-of-materials.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Using a BOM -sidebar_order: 1000 ---- - -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`: - -```xml {tabTitle:Maven}{filename:pom.xml} - - - - io.sentry - sentry-bom - {{ packages.version('sentry.java', '5.1.0') }} - pom - import - - - -``` - -Then use dependencies without specifying a version, for example: - -```xml {tabTitle:Maven}{filename:pom.xml} - - io.sentry - sentry - - - io.sentry - sentry-logback - -``` - -Using Gradle 5.0 or higher, you can add the following to the `dependencies` section in your `build.gradle`: - -```groovy {filename:build.gradle} -implementation platform('io.sentry:sentry-bom:{{ packages.version('sentry.java', '5.1.0') }}') //import bom -implementation('io.sentry:sentry') //no version specified -implementation('io.sentry:sentry-logback') //no version specified -```