Specify repository for node.js as exclusive by default#345
Merged
deepy merged 2 commits intonode-gradle:mainfrom Feb 2, 2026
Merged
Specify repository for node.js as exclusive by default#345deepy merged 2 commits intonode-gradle:mainfrom
deepy merged 2 commits intonode-gradle:mainfrom
Conversation
By default, gradle checks all repositories in the order they are defined when resolving an artifact, unless a repository is declared that exclusively contains that artifact. In that case only that repository is checked when resolving the artifact.
deepy
requested changes
Jan 28, 2026
Member
deepy
left a comment
There was a problem hiding this comment.
Looks good 👍
But let's always enable it rather than add another configurable option
If this causes compatibility issues, the distBaseUrl can be set to null and a repository can be manually specified
jkrshw
commented
Jan 30, 2026
| artifact() | ||
| project.repositories.exclusiveContent { | ||
| forRepository { | ||
| project.repositories.ivy { |
Contributor
Author
There was a problem hiding this comment.
One doubt I have is that this first adds the ivy repository to the declared repositories, and then newly added repository is passed in to project.repositories.exclusiveContent.
Looking through the gradle code that seems fine, and I couldn't find any other supported way to create an ivy repository other than through project.repositories.ivy
deepy
approved these changes
Feb 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
By default, gradle checks all repositories in the order they are defined when resolving an artifact, unless a repository is declared that exclusively contains that artifact. In that case only that repository is checked when resolving the artifact.
resolves #344