[ 
https://issues.apache.org/jira/browse/MRESOLVER-445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17791723#comment-17791723
 ] 

ASF GitHub Bot commented on MRESOLVER-445:
------------------------------------------

cstamas commented on PR #383:
URL: https://github.com/apache/maven-resolver/pull/383#issuecomment-1834282831

   @gnodet Yes, taking step back is actually the point here: to ease migration 
of code that used Resolver 1.x.
   
   My plan is following: DefaultRepositorySystemSession (DRSS) should be gone 
soon, let's say in 2.1 version. In a moment DRSS is gone, MutableSession loses 
it's role, and to be removed as well, because then the only way to create 
session becomes the RepositorySystem#createSessionBuilder() method. Basically 
at point, when DRSS is gone, the MutableSession has no role to fulfil (as 
currently all it does, is "bridges" between old code passing around DRSS and 
settings things on it, and new code that uses SessionBuilder.
   
   My only problem with this, is that am introducing an interface on public API 
in 2.0.0 that is meant to be gone in (let's say) 2.1. Should it be deprecated 
immediately as well? Maybe deprecate whole DRSS class as well (and not only def 
ctor)?




> Introduce MutableSession, a common ancestor for build and def impl
> ------------------------------------------------------------------
>
>                 Key: MRESOLVER-445
>                 URL: https://issues.apache.org/jira/browse/MRESOLVER-445
>             Project: Maven Resolver
>          Issue Type: Task
>            Reporter: Tamas Cservenak
>            Assignee: Tamas Cservenak
>            Priority: Major
>             Fix For: 2.0.0
>
>
> Reason is that this would simplify existing codebase upgrades, no need to 
> maintain two execution paths.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to