Hi all,

I am in the process of updating the dependencies in carbon 4.3.0 [1]. As a
result i have come up with the following approach to get this done.

1. Remove unused dependencies (including [2])
This is going to be a difficult task since it can break the build in many
ways if we remove dependencies mistakenly. In such a case it would be easy
to fix compile time build breaks, but tackling runtime breaks would be
harder. I have decided to use the maven dependency:analyze goal [3] to
initially identify the unused dependencies and then removing them (probably
one by one) with manual intervention (there's a known issue that this maven
plugin sometimes detects runtime dependencies as unused and therefore this
step requires manual intervention). Is there any other better/possible way
to approach this?

2. Update existing dependencies to latest versions
This requires finding latest dependencies and updating them accordingly
without breaking functionality. For this I will be using the maven
versions:display-dependency-updates goal [4] to list the latest updates. In
this case How are we going to handle the possible API changes in the
libraries? Are we going to update to the latest version without API changes
or are we going to properly fix to use new libraries with API changes? My
idea is we should first check how feasible it is for us to cater each and
every API change and what are the benefits that we gain from it in the end.
So then we can decide to do only certain updates only for this release.
WDYT? I will also look for OSGi compatibility of these
libraries/dependencies as well.

Any inputs on this is really appreciated.

[1] https://wso2.org/jira/browse/CARBON-14010
[2] https://wso2.org/jira/browse/CARBON-14762
[3]
http://maven.apache.org/plugins/maven-dependency-plugin/analyze-mojo.html
[4]
http://mojo.codehaus.org/versions-maven-plugin/display-dependency-updates-mojo.html

Thanks.
/Gayashan

-- 
*Gayashan Amarasinghe*
Software Engineer | Platform TG
WSO2, Inc. | http://wso2.com
lean. enterprise. middleware

Mobile : +94718314517
Blog : gayashan-a.blogspot.com
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to