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
remove GAX test code from BOM #1696
Conversation
boms/cloud-oss-bom/pom.xml
Outdated
<artifactId>gax</artifactId> | ||
<version>${gax.version}</version> | ||
<type>pom</type> | ||
<scope>import</scope> |
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.
The artifact gax is not a pom.
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.
good catch; fixed
gax's testlib-classifier artifact contains classes useful to write tests for gax (test infrastructure; see below for the content). It's not unit tests for gax (I read your googleapis/gax-java#700). It's not for GCP customers, but for Google library maintainers to write unit tests with gax. That's why this PR is removing the testlib-classifier artifact. Is this correct?
Example usage of gax testlib-classifier artifact in java-dialogflow: https://github.com/googleapis/java-dialogflow/blob/ed5bbf503cc6d00dbeebee057d87e5ae560bcd67/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/SessionsClientTest.java (pom.xml) |
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.
testlib shouldn't be used outside the project itself, any more than anything else in src/test. It's not documented, not subject to versioning constraints or backwards compatibility, and arguably shouldn't be published on maven central.
@suztomo