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

[BUG] Jar hell from org.bouncycastle:bcprov-jdk18on #1072

Closed
dbwiddis opened this issue Feb 27, 2025 · 0 comments · Fixed by #1074 or #1078
Closed

[BUG] Jar hell from org.bouncycastle:bcprov-jdk18on #1072

dbwiddis opened this issue Feb 27, 2025 · 0 comments · Fixed by #1074 or #1078
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@dbwiddis
Copy link
Member

dbwiddis commented Feb 27, 2025

What is the bug?

Build is failing on Jar Hell.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':dependencies'.
> Could not resolve all dependencies for configuration ':testCompileClasspath'.
   > Conflict found for the following module:
       - org.bouncycastle:bcprov-jdk18on between versions 1.80 and 1.78

How can one reproduce the bug?

  • ./gradlew compileTestJava

What is the expected behavior?

No Jar Hell

Do you have any additional context?

Our build.gradle specifies version 1.8.0:

implementation 'org.bouncycastle:bcprov-jdk18on:1.80'

The OpenSearch Version Catalog specifies 1.7.8:
https://github.com/opensearch-project/OpenSearch/blob/0ffed5e8b743a075f5d66c4fe6e9b8371eacfa14/gradle/libs.versions.toml#L61

Quick fix:

  • Change the build.gradle line above to get the version from the version catalog (${versions.bouncycastle})

Better fix:

  • Audit all the dependencies to see if they are in the version catalog and update appropriately.
  • Check whether they are actually required on the main build or whether they can be testImplementation as this one appears to probably be
@dbwiddis dbwiddis added bug Something isn't working good first issue Good for newcomers labels Feb 27, 2025
@dbwiddis dbwiddis linked a pull request Mar 7, 2025 that will close this issue
3 tasks
@dbwiddis dbwiddis removed the untriaged label Mar 7, 2025
@dbwiddis dbwiddis self-assigned this Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
1 participant