Skip to content

Commit

Permalink
Add SDK deps versions validation options to Java Maven plugin docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lcian committed Mar 4, 2025
1 parent ab459a6 commit 0ca5cf0
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 5 deletions.
8 changes: 8 additions & 0 deletions docs/platforms/java/common/maven/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ We expose the following configuration values, by adding a `<configuration>` sect

<!-- Disable auto-install of SDK and Integrations -->
<skipAutoInstall>false</skipAutoInstall>

<!-- Disable validating consistency of SDK dependency versions -->
<skipValidateSdkDependencyVersions>false</skipValidateSdkDependencyVersions>
</configuration>
<executions>
<execution>
Expand All @@ -71,6 +74,11 @@ We expose the following configuration values, by adding a `<configuration>` sect
<!-- This enables source context, allowing you to see your source -->
<!-- code as part of your stack traces in Sentry. -->
<goal>uploadSourceBundle</goal>

<!-- Validates Sentry SDK dependency versions. -->
<!-- Mixing SDK dependency versions can result in build or run time errors. -->
<!-- If mixed versions are detected, the build will fail. -->
<goal>validateSdkDependencyVersions</goal>
</goals>
</execution>
</executions>
Expand Down
6 changes: 5 additions & 1 deletion platform-includes/getting-started-install/java.log4j2.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<!-- <url>http://localhost:8000/</url> -->
<org>___SENTRY_ORG_SLUG___</org>
<project>___SENTRY_PROJECT_SLUG___</project>
<!-- Do not commit you auth token with this file, you should provide it via the SENTRY_AUTH_TOKEN environment variable or similar -->
<!-- Do not commit your auth token with this file, you should provide it via the SENTRY_AUTH_TOKEN environment variable or similar -->
<!-- <authToken>${env.SENTRY_AUTH_TOKEN}</authToken> -->
<authToken>___SENTRY_AUTH_TOKEN___</authToken>
<!-- Enable debugging to see logs in case something goes wrong when uploading the source bundle -->
Expand All @@ -27,6 +27,10 @@
<!-- This enables source context, allowing you to see your source code as part of your stack traces in Sentry -->
<!-- Learn more about this feature in its dedicated "Source Context" docs page -->
<goal>uploadSourceBundle</goal>
<!-- Validates Sentry SDK dependency versions. -->
<!-- Mixing SDK dependency versions can result in build or run time errors. -->
<!-- If mixed versions are detected, the build will fail. -->
<goal>validateSdkDependencyVersions</goal>
</goals>
</execution>
</executions>
Expand Down
6 changes: 5 additions & 1 deletion platform-includes/getting-started-install/java.logback.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<!-- <url>http://localhost:8000/</url> -->
<org>___SENTRY_ORG_SLUG___</org>
<project>___SENTRY_PROJECT_SLUG___</project>
<!-- Do not commit you auth token with this file, you should provide it via the SENTRY_AUTH_TOKEN environment variable or similar -->
<!-- Do not commit your auth token with this file, you should provide it via the SENTRY_AUTH_TOKEN environment variable or similar -->
<!-- <authToken>${env.SENTRY_AUTH_TOKEN}</authToken> -->
<authToken>___SENTRY_AUTH_TOKEN___</authToken>
<!-- Enable debugging to see logs in case something goes wrong when uploading the source bundle -->
Expand All @@ -27,6 +27,10 @@
<!-- This enables source context, allowing you to see your source code as part of your stack traces in Sentry -->
<!-- Learn more about this feature in its dedicated "Source Context" docs page -->
<goal>uploadSourceBundle</goal>
<!-- Validates Sentry SDK dependency versions. -->
<!-- Mixing SDK dependency versions can result in build or run time errors. -->
<!-- If mixed versions are detected, the build will fail. -->
<goal>validateSdkDependencyVersions</goal>
</goals>
</execution>
</executions>
Expand Down
6 changes: 5 additions & 1 deletion platform-includes/getting-started-install/java.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ plugins {
<!-- <url>http://localhost:8000/</url> -->
<org>___SENTRY_ORG_SLUG___</org>
<project>___SENTRY_PROJECT_SLUG___</project>
<!-- Do not commit you auth token with this file, you should provide it via the SENTRY_AUTH_TOKEN environment variable or similar -->
<!-- Do not commit your auth token with this file, you should provide it via the SENTRY_AUTH_TOKEN environment variable or similar -->
<!-- <authToken>${env.SENTRY_AUTH_TOKEN}</authToken> -->
<authToken>___SENTRY_AUTH_TOKEN___</authToken>
<!-- Enable debugging to see logs in case something goes wrong when uploading the source bundle -->
Expand All @@ -33,6 +33,10 @@ plugins {
<!-- This enables source context, allowing you to see your source code as part of your stack traces in Sentry -->
<!-- Learn more about this feature in its dedicated "Source Context" docs page -->
<goal>uploadSourceBundle</goal>
<!-- Validates Sentry SDK dependency versions. -->
<!-- Mixing SDK dependency versions can result in build or run time errors. -->
<!-- If mixed versions are detected, the build will fail. -->
<goal>validateSdkDependencyVersions</goal>
</goals>
</execution>
</executions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ plugins {
<!-- <url>http://localhost:8000/</url> -->
<org>___SENTRY_ORG_SLUG___</org>
<project>___SENTRY_PROJECT_SLUG___</project>
<!-- Do not commit you auth token with this file, you should provide it via the SENTRY_AUTH_TOKEN environment variable or similar -->
<!-- Do not commit your auth token with this file, you should provide it via the SENTRY_AUTH_TOKEN environment variable or similar -->
<!-- <authToken>${env.SENTRY_AUTH_TOKEN}</authToken> -->
<authToken>___SENTRY_AUTH_TOKEN___</authToken>
<!-- Enable debugging to see logs in case something goes wrong when uploading the source bundle -->
Expand All @@ -33,6 +33,10 @@ plugins {
<!-- This enables source context, allowing you to see your source code as part of your stack traces in Sentry -->
<!-- Learn more about this feature in its dedicated "Source Context" docs page -->
<goal>uploadSourceBundle</goal>
<!-- Validates Sentry SDK dependency versions. -->
<!-- Mixing SDK dependency versions can result in build or run time errors. -->
<!-- If mixed versions are detected, the build will fail. -->
<goal>validateSdkDependencyVersions</goal>
</goals>
</execution>
</executions>
Expand Down
6 changes: 5 additions & 1 deletion platform-includes/getting-started-install/java.spring.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ plugins {
<!-- <url>http://localhost:8000/</url> -->
<org>___SENTRY_ORG_SLUG___</org>
<project>___SENTRY_PROJECT_SLUG___</project>
<!-- Do not commit you auth token with this file, you should provide it via the SENTRY_AUTH_TOKEN environment variable or similar -->
<!-- Do not commit your auth token with this file, you should provide it via the SENTRY_AUTH_TOKEN environment variable or similar -->
<!-- <authToken>${env.SENTRY_AUTH_TOKEN}</authToken> -->
<authToken>___SENTRY_AUTH_TOKEN___</authToken>
<!-- Enable debugging to see logs in case something goes wrong when uploading the source bundle -->
Expand All @@ -33,6 +33,10 @@ plugins {
<!-- This enables source context, allowing you to see your source code as part of your stack traces in Sentry -->
<!-- Learn more about this feature in its dedicated "Source Context" docs page -->
<goal>uploadSourceBundle</goal>
<!-- Validates Sentry SDK dependency versions. -->
<!-- Mixing SDK dependency versions can result in build or run time errors. -->
<!-- If mixed versions are detected, the build will fail. -->
<goal>validateSdkDependencyVersions</goal>
</goals>
</execution>
</executions>
Expand Down
4 changes: 4 additions & 0 deletions platform-includes/source-context/java.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,10 @@ Add the Sentry Maven Plugin to your project by adding the following lines to you
<!-- This enables source context, allowing you to see your source -->
<!-- code as part of your stack traces in Sentry. -->
<goal>uploadSourceBundle</goal>
<!-- Validates Sentry SDK dependency versions. -->
<!-- Mixing SDK dependency versions can result in build or run time errors. -->
<!-- If mixed versions are detected, the build will fail. -->
<goal>validateSdkDependencyVersions</goal>
</goals>
</execution>
</executions>
Expand Down

0 comments on commit 0ca5cf0

Please sign in to comment.