FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix Guava shading in jdbc module by bsideup · Pull Request #399 · testcontainers/testcontainers-java · GitHub

Fix Guava shading in jdbc module - #399

Merged
bsideup merged 2 commits into
masterfrom
fix_guava_in_jdbc
Jul 10, 2017
Merged

Fix Guava shading in jdbc module#399
bsideup merged 2 commits into
masterfrom
fix_guava_in_jdbc

Conversation

bsideup commented Jul 10, 2017

Copy link
Copy Markdown
Member

1.4.0 introduced a bug in jdbc module. The shading was removed from it in #390, and Guava was in provided scope.

bsideup added this to the 1.4.1 milestone Jul 10, 2017
bsideup requested a review from rnorth July 10, 2017 09:58
Comment thread core/pom.xml
<name>TestContainers Core</name>

<dependencies>
<dependency>

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I moved it here, otherwise Maven would add it to every module as compile dependency. However, modules should use it from testcontainers dependency as a transitive.

Comment thread modules/jdbc/pom.xml
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>18.0</version>
<scope>provided</scope>

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Damn!

Comment thread modules/jdbc/pom.xml
<include>com.google.guava:*</include>
</includes>
</artifactSet>
<promoteTransitiveDependencies>false</promoteTransitiveDependencies>

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This flag must be set to false to avoid including testcontainers' dependencies

rnorth left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This looks fine for a quick fix. Still - I think we could probably quite easily remove the use of Guava altogether. Maybe something to do when we have a bit more time though.

bsideup merged commit 22339fc into master Jul 10, 2017
bsideup deleted the fix_guava_in_jdbc branch July 10, 2017 11:03
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL