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

Avoid SelfResolvingDependency #749

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jvandort
Copy link

@jvandort jvandort commented Mar 19, 2025

SelfResolvingDependency has been deprecated in Gradle 8.x and will be removed in Gradle 9.0

BaseNpmSelfResolvingDependency implements this API, as well as Dependency, and SelfResolvingDependencyInternal.

Implementing Gradle interfaces like Dependency is asking for trouble, as these APIs are subject to change in Gradle major versions. Plus, implementing these APIs often require also implementing internal types.

BaseNpmSelfResolvingDependency will be impacted by multiple breaking changes in Gradle 9.0:

This commit removes all references to SelfResolvingDependency, and all references to BaseNpmSelfResolvingDependency, which implements SelfResolvingDependency. Instead, it uses public Gradle APIs to create a FileCollectionDependency which lazily installs NPM dependencies.

SelfResolvingDependency has been deprecated in Gradle 8.x and will be removed in Gradle 9.0

BaseNpmSelfResolvingDependency implements this API, as well as Dependency, and SelfResolvingDependencyInternal.

Implementing Gradle interfaces like Dependency is asking for trouble, as these APIs are subject to change
in Gradle major versions. Plus, implementing these APIs often require also implementing internal types.

This commit removes all references to SelfResolvingDependency, and all references to BaseNpmSelfResolvingDependency,
which implements SelfResolvingDependency. Instead, it uses public Gradle APIs to create a FileCollectionDependency which
lazily installs NPM dependencies.
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.

1 participant