feat: relative repos. --repos=local=./build/repo #2376
Draft
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.
with this you can do
//REPOS local=build/repoand jbang will turn that into an absolute file url based on current directory.Its mainly intended for case where you use
gradle publishAllPublicationsToBuildRepositoryand get/build/repowith the built artifacts.with this I can put:
and when in root run scripts/aliases and have it resolve against local built repo.
it of course have the downside that artifacts will be copied to local maven.
I've for now marked it as experimental as I'm realizing we should have a way to resolve the path relative to where the repos ref is placed or at least be able to use property replacements to be more consistent and able to run from anywhere.