You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "anukalp2804 (via GitHub)" <gi...@apache.org> on 2025/12/25 12:08:40 UTC
[PR] Document deprecation rationale for executeChangeLogCommand overloads [maven-scm]
anukalp2804 opened a new pull request, #1350:
URL: https://github.com/apache/maven-scm/pull/1350
Fixes #1344
Documents the rationale for the deprecation of the legacy
executeChangeLogCommand methods in AbstractChangeLogCommand and clarifies
that they are retained only for backward compatibility with existing SCM
provider implementations.
No functional behavior is changed. These methods remain deprecated and are
not recommended for use by new implementations.
Following this checklist to help us incorporate your
contribution quickly and easily:
- [x] Your pull request should address just one issue, without pulling in other changes.
- [ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
- [x] Each commit in the pull request should have a meaningful subject line and body.
Note that commits might be squashed by a maintainer on merge.
- [ ] Write unit tests that match behavioral changes, where the tests fail if the changes to the runtime are not applied.
This may not always be possible but is a best-practice.
- [x] Run `mvn verify` to make sure basic checks pass.
A more thorough check will be performed on your pull request automatically.
- [ ] You have run the integration tests successfully (`mvn -Prun-its verify`).
If your pull request is about ~20 lines of code you don't need to sign an
[Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf) if you are unsure
please ask on the developers list.
To make clear that you license your contribution under
the [Apache License Version 2.0, January 2004](http://www.apache.org/licenses/LICENSE-2.0)
you have to acknowledge this by using the following check-box.
- [x] I hereby declare this contribution to be licenced under the [Apache License Version 2.0, January 2004](http://www.apache.org/licenses/LICENSE-2.0)
- [ ] In any other case, please file an [Apache Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Document deprecation rationale for executeChangeLogCommand overloads [maven-scm]
Posted by "anukalp2804 (via GitHub)" <gi...@apache.org>.
anukalp2804 commented on PR #1350:
URL: https://github.com/apache/maven-scm/pull/1350#issuecomment-3691969190
> This is not exactly true - we have in fact impl for this for git provider
Thanks for the clarification. I’ve updated the Javadoc to reflect that some
providers (such as Git) still implement this API while clarifying that it
remains part of the legacy path and is primarily retained for backward
compatibility.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Document deprecation rationale for executeChangeLogCommand overloads [maven-scm]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #1350:
URL: https://github.com/apache/maven-scm/pull/1350#issuecomment-4663059853
@slachiewicz Please assign appropriate label to PR according to the type of change.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Document deprecation rationale for executeChangeLogCommand overloads [maven-scm]
Posted by "anukalp2804 (via GitHub)" <gi...@apache.org>.
anukalp2804 commented on code in PR #1350:
URL: https://github.com/apache/maven-scm/pull/1350#discussion_r2649107026
##########
maven-scm-api/src/main/java/org/apache/maven/scm/command/changelog/AbstractChangeLogCommand.java:
##########
@@ -45,6 +52,12 @@ protected abstract ChangeLogScmResult executeChangeLogCommand(
String datePattern)
throws ScmException;
+ /**
+ * @deprecated This legacy overload is kept for backward compatibility.
+ * It may not be supported by all SCM providers and in many cases
+ * results in an {@link ScmException}. Providers that still rely on it
+ * should consider migrating to the newer changelog execution APIs.
+ */
Review Comment:
Thanks for the suggestion. Before updating, I want to confirm the correct
replacement API reference with maintainers to ensure accuracy.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Document deprecation rationale for executeChangeLogCommand overloads [maven-scm]
Posted by "anukalp2804 (via GitHub)" <gi...@apache.org>.
anukalp2804 commented on PR #1350:
URL: https://github.com/apache/maven-scm/pull/1350#issuecomment-3708083520
Just checking in on this PR. It has been idle for a while and is still awaiting workflow approval and review.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Document deprecation rationale for executeChangeLogCommand overloads [maven-scm]
Posted by "slachiewicz (via GitHub)" <gi...@apache.org>.
slachiewicz merged PR #1350:
URL: https://github.com/apache/maven-scm/pull/1350
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Document deprecation rationale for executeChangeLogCommand overloads [maven-scm]
Posted by "slachiewicz (via GitHub)" <gi...@apache.org>.
slachiewicz commented on PR #1350:
URL: https://github.com/apache/maven-scm/pull/1350#issuecomment-3691674265
This is not exactly true - we have in fact impl for this for git provider
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Document deprecation rationale for executeChangeLogCommand overloads [maven-scm]
Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #1350:
URL: https://github.com/apache/maven-scm/pull/1350#discussion_r2649094781
##########
maven-scm-api/src/main/java/org/apache/maven/scm/command/changelog/AbstractChangeLogCommand.java:
##########
@@ -45,6 +52,12 @@ protected abstract ChangeLogScmResult executeChangeLogCommand(
String datePattern)
throws ScmException;
+ /**
+ * @deprecated This legacy overload is kept for backward compatibility.
+ * It may not be supported by all SCM providers and in many cases
+ * results in an {@link ScmException}. Providers that still rely on it
+ * should consider migrating to the newer changelog execution APIs.
+ */
Review Comment:
The deprecation notice should reference the replacement API method. Consider adding a reference to the newer method using @link. For example: "Providers that still rely on it should consider migrating to {@link #executeChangeLogCommand(ChangeLogScmRequest)} instead."
##########
maven-scm-api/src/main/java/org/apache/maven/scm/command/changelog/AbstractChangeLogCommand.java:
##########
@@ -35,6 +35,13 @@
* @author Olivier Lamy
*/
public abstract class AbstractChangeLogCommand extends AbstractCommand implements ChangeLogCommand {
+ /**
+ * @deprecated This method is part of the legacy changelog command execution
+ * mechanism and is retained for backward compatibility with existing SCM
+ * provider implementations. Some providers (for example Git) still implement
+ * this API, but newer code should rely on the current changelog handling
+ * logic provided by the SCM command framework instead.
+ */
Review Comment:
The deprecation notice should reference the replacement API method. Consider adding a reference to the newer method using @link. For example: "Providers should consider migrating to {@link #executeChangeLogCommand(ChangeLogScmRequest)} instead."
##########
maven-scm-api/src/main/java/org/apache/maven/scm/command/changelog/AbstractChangeLogCommand.java:
##########
@@ -56,6 +69,12 @@ protected ChangeLogScmResult executeChangeLogCommand(
throw new ScmException("Unsupported method for this provider.");
}
+ /**
+ * @deprecated This legacy overload is kept for backward compatibility.
+ * It may not be supported by all SCM providers and in many cases
+ * results in an {@link ScmException}. Providers that still rely on it
+ * should consider migrating to the newer changelog execution APIs.
+ */
Review Comment:
The deprecation notice should reference the replacement API method. Consider adding a reference to the newer method using @link. For example: "Providers that still rely on it should consider migrating to {@link #executeChangeLogCommand(ChangeLogScmRequest)} instead."
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Document deprecation rationale for executeChangeLogCommand overloads [maven-scm]
Posted by "anukalp2804 (via GitHub)" <gi...@apache.org>.
anukalp2804 commented on PR #1350:
URL: https://github.com/apache/maven-scm/pull/1350#issuecomment-3750466526
Hi @slachiewicz ,
Just a gentle follow-up on this PR.
Happy to adjust the wording or add references if you feel anything needs clarification.
Thanks for your time.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org