Preserve property references when using release:prepare goal with autoResolveSnapshots parameter
- Dominant language
- Java
- Stars
- 128
- Forks
- 145
- Avg merge
- 7h 7m
- Merged PRs (30d)
- 3
Description
### New feature, improvement proposal
I have property references to snapshot dependencies in my project
```
...
1.0.0-SNAPSHOT
...
dep
dep1
${dep.version}
dep
dep2
${dep.version}
...
```
When I run the `release:prepare` goal with the `autoResolveSnapshots` parameter set, the plugin correctly infers that the property referenced in the dependency section is a snapshot that needs to be resolved, but it removes the references and makes inline updates for each dependency while leaving the now-unreferenced property unchanged.
```
...
1.0.0-SNAPSHOT
...
dep
dep1
1.0.0
dep
dep2
1.0.0
...
```
Can the `autoResolveSnapshots` functionality be changed so that property references are preserved during resolution?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the release:prepare goal and its autoResolveSnapshots parameter, then trace how snapshot property references are resolved and rewritten. Done means references such as ${dep.version} remain in dependency versions while the shared property is resolved consistently, with regression coverage for the shown case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system, release
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100