-
Notifications
You must be signed in to change notification settings - Fork 3k
open-api: Fix testFixtures dependencies #11422
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
Conversation
| testFixturesImplementation project(':iceberg-gcp') | ||
| testFixturesImplementation project(':iceberg-azure') | ||
| testFixturesImplementation(libs.hadoop3.common) { | ||
| exclude group: 'log4j' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exclusion copied from other modules.
Needed hadoop dependency for Configuration class in RCKUtils
| exclude group: 'org.codehaus.woodstox' | ||
| exclude group: 'org.eclipse.jetty' | ||
| } | ||
| testFixturesImplementation project(path: ':iceberg-bundled-guava', configuration: 'shadow') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needed as we are using Maps from Guava.
| exclude group: 'org.eclipse.jetty' | ||
| } | ||
| testFixturesImplementation project(path: ':iceberg-bundled-guava', configuration: 'shadow') | ||
| testFixturesImplementation libs.junit.jupiter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Junit dependency was previously coming from core runtime path.
| testFixturesImplementation project(':iceberg-api') | ||
| testFixturesImplementation project(':iceberg-core') | ||
| testFixturesImplementation project(path: ':iceberg-core', configuration: 'testArtifacts') | ||
| testFixturesImplementation project(':iceberg-core').sourceSets.test.runtimeClasspath |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This brings too many things from test runtime class path and creates a problem for shadow jar. For example it brings some csv files, GPL license file etc.
danielcweeks
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ajantha-bhat
|
@ajantha-bhat Great catch, thank you! |
Importing
testFixturesImplementation project(':iceberg-core').sourceSets.test.runtimeClasspathbrings everything to class path and creates problem for shadow jar.
Need to depend only on required classes.