You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to allow Baton migrations to be more reusable and general, we should pull out key features from aiSSEMBLE foundation-upgrade and move them directly into baton so they can be extended.
This ticket will focus on moving POM utils classes from aiSSEMBLE from com.boozallen.aissemble.upgrade to Baton.
The intention of this ticket is to migrate the utilities that perform migration logic for Maven's POM files:
LocationAwareMavenReader.java
PomHelper.java
PomModifications.java
The implementation process for doing so is:
Migrate utility in the Baton repo ✅
Remove mentions of aiSSEMBLE if present ✅
Identify and write unit tests for the relevant util methods/subclasses for:
PomModifications.java ✅
Deletion ✅
Insertion ✅
Replacement ✅
Verify the migrated utility works in Baton ✅
Update test steps and run through them ✅
Update the documentation for Baton to illustrate the new capability ✅
Update README ✅
Update javadoc descriptions ✅
Add an example project in baton directory that uses utils to do a simple POM migration ✅
(Nice to have) Reimplement LocationAwareMavenReader.java as an extension instead of a copy of the original class
Seems to have private and final members we intend to change, don't see an alternative to address this 🟥
Test Strategy/Script
Pull down and open Baton git clone git@github.org:TechnologyBrewery/baton
Confirm the Baton bootstrap build is successful and tests pass mvn clean install -Pbootstrap
Confirm the Baton example projects build successfully mvn clean install
Pull down and open aiSSEMBLE git clone git@github.org:boozallen/aissemble
Run the baton migration unit tests successfully ./mvnw clean install -pl :foundation-upgrade
Confirm aiSSEMBLE built successfully in CI with the changes
References/Additional Context
LocationAwareMavenReader.java is a copy of org.apache.maven.model.io.xpp3.MavenXpp3ReaderEx. Should we try to convert this to an extension or proceed to moving it to Baton as is?
Seems like a lot of the functions to be overwritten had properties that were final or private. Can attempt to do this as an extension again as it would be nice
TiltfileUtil.java seems to heavily reference aiSSEMBLE more than the other files and will probably require the most refactoring to be made generic
Should be able to split this one into TiltFileUtil (baton) and AissembleTiltFileUtil (aissemble) in the next ticket
Follow-Ons
The following classes will also be migrated from aiSSEMBLE to Baton either in this ticket or in future tickets:
PythonPackageMigration.java
TiltfileUtil.java
YamlUtils.java
The text was updated successfully, but these errors were encountered:
Description
In order to allow Baton migrations to be more reusable and general, we should pull out key features from aiSSEMBLE foundation-upgrade and move them directly into baton so they can be extended.
Related issue on the Baton side
DOD
This ticket will focus on moving POM utils classes from aiSSEMBLE from com.boozallen.aissemble.upgrade to Baton.
The intention of this ticket is to migrate the utilities that perform migration logic for Maven's POM files:
The implementation process for doing so is:
Test Strategy/Script
git clone git@github.org:TechnologyBrewery/baton
mvn clean install -Pbootstrap
mvn clean install
git clone git@github.org:boozallen/aissemble
./mvnw clean install -pl :foundation-upgrade
References/Additional Context
Follow-Ons
The following classes will also be migrated from aiSSEMBLE to Baton either in this ticket or in future tickets:
The text was updated successfully, but these errors were encountered: