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

Update scope of test-fixtures dependencies #3166

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

idelpivnitskiy
Copy link
Member

@idelpivnitskiy idelpivnitskiy commented Jan 10, 2025

Motivation:

Dependency-analysis plugin detected that some dependencies declared under incorrect scope. In this PR we only focus on test-fixtures dependencies.

Modifications:

  • Update scope of dependencies as recommended by the plugin. Typically, it recommends to promote some testFixturesImplementation dependencies to testFixturesApi.
  • Add exclusion rule for com.google.code.findbugs:jsr305 for onIncorrectConfiguration rule as we don't want to promote it explicitly, it's handled by servicetalk-annotations.
  • Exclude some false positives when the plugin recommends reducing scope, but testFixturesApi is actually required.

Result:

Addresses warning from dependency-analysis plugin that recommends different scope for test dependencies.

Risk for users:

None, because changes were made only for test-fixures dependencies to expand their scope, not reduce.

Motivation:

Dependency-analysis plugin detected that some dependencies declared
under incorrect scope. In this PR we only focus on test-dependencies.

Modifications:

- Update scope of dependencies as recommended by the plugin. Typically,
it recommends to promote some `testFixturesImplementation` dependencies
to `testFixturesApi`.
- Add exclusion rule for `com.google.code.findbugs:jsr305` for
`onIncorrectConfiguration` rule as we don't want to promote it
explicitly, it's handled by `servicetalk-annotations`.
- Exclude some false positives when plugin recommends to reduce scope,
but `testFixturesApi` is actually required.

Result:

Addresses warning from dependency-analysis plugin that recommend
different scope for test dependencies.
@idelpivnitskiy idelpivnitskiy self-assigned this Jan 10, 2025
@idelpivnitskiy idelpivnitskiy changed the title Update scope of test dependencies Update scope of test-fixtures dependencies Jan 10, 2025
@idelpivnitskiy idelpivnitskiy merged commit 724f755 into apple:main Jan 10, 2025
11 checks passed
@idelpivnitskiy idelpivnitskiy deleted the test-deps branch January 10, 2025 21:09
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