You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is about whether some third party dependencies that are currently defined in scope requires (not re-exported at compile time) should be moved to scope requires transitive (re-exported at compile time).
Status
Concretely, it is about the following dependencies defined in module-info.java.
All of these libraries contain Types – public Interfaces or Classes – that are exposed in a public method of our code. Hence, users of the SDK potentially need them (at compile time) to call a certain part of our code.
This situation was discovered when we started using the dependency scope check in the new Gradle setup. The check failed, telling the scope should be changes to requires transitive for the libraries listed above.
Check each of the dependencies and do one of three things:
Change our public API such that it uses no types from the dependency. Maybe it's just one or two types that were used by mistake before the scope check existed.
Keep the necessary exclusions. Maybe it was not intended to use the type(s) on the API, or the place where the types are used is not considered public API despite the fact that it is technically accessible. Maybe change the API at a later point.
Move the dependency scope to requires transitive as a conscious decision to make the 3rd party dependency part of our API.
The text was updated successfully, but these errors were encountered:
Background
This is about whether some third party dependencies that are currently defined in scope
requires
(not re-exported at compile time) should be moved to scoperequires transitive
(re-exported at compile time).Status
Concretely, it is about the following dependencies defined in module-info.java.
All of these libraries contain Types – public Interfaces or Classes – that are exposed in a
public
method of our code. Hence, users of the SDK potentially need them (at compile time) to call a certain part of our code.This situation was discovered when we started using the dependency scope check in the new Gradle setup. The check failed, telling the scope should be changes to
requires transitive
for the libraries listed above.In order to make the check pass, we added the following exclusions:
What to do
Check each of the dependencies and do one of three things:
requires transitive
as a conscious decision to make the 3rd party dependency part of our API.The text was updated successfully, but these errors were encountered: