-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#191 archetype and migration update for fabric8 usage in ci and it profiles #203
Conversation
3d3c3ba
to
8485df8
Compare
removeOldConfig.add(pomDeletePreviousVersion); | ||
} | ||
|
||
private boolean executeProfileMigration(File file, Plugin profilePlugin, String profileId) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this function is the main addition to the migration, the rest of the changes in this file are largely refactorings to make shared helper functions available between the build config and profile migrations
</images> | ||
</configuration> | ||
</execution> | ||
</executions> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussed offline, but going to move these configs out of the execution
block so that it will apply to all executions.
0344b2d
to
af8eb15
Compare
<image> | ||
<name>${project.artifactId}:${project.version}</name> | ||
</image> | ||
</images> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
<name>${project.artifactId}:${project.version}</name> | ||
</image> | ||
</images> | ||
</configuration> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Q: Why set the image name when the config is set to skip?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was brought up at DOD and we as a team need to decide if we want to unify this configuration. Will be covered in different ticket
import com.boozallen.aissemble.upgrade.migration.AbstractAissembleMigration; | ||
import com.boozallen.aissemble.upgrade.util.pom.LocationAwareMavenReader; | ||
import org.apache.maven.model.Build; | ||
import org.apache.maven.model.*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C: Should avoid using .*
on imports.
migratePackaging = true; | ||
} | ||
|
||
return migrateConfiguration || migrateProfile || migratePackaging; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
S: Could simplify to return orphedomosBuildPlugin != null || orphedomosCiProfilePlugin != null || orphedomosItProfilePlugin != null || containsOrphedomosPackaging(file)
} | ||
|
||
/** | ||
* Performs the migration if the shouldExecuteOnFile() returns true | ||
* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A: Extra space
8d3b862
to
c31d02a
Compare
c31d02a
to
d340666
Compare
No description provided.