Skip to content
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

Call generate features on compile dependency changes in dev mode flow #1454

Merged
merged 3 commits into from
Mar 23, 2022

Conversation

kathrynkodama
Copy link
Contributor

@kathrynkodama kathrynkodama commented Mar 21, 2022

Part of #1441

Call liberty:generate-features goal when compile dependencies have changed in a build file, covers single module and multi module scenarios.

Integration tests will be added as part of #1395

See OpenLiberty/ci.common#349

@kathrynkodama
Copy link
Contributor Author

Follow-up issue opened for the scenario where generate-features runs twice on build file change for multi module projects: #1456

if (redeployCheck) {
// update upstream Maven projects list
int index = upstreamMavenProjects.indexOf(backupUpstreamProject);
upstreamMavenProjects.set(index, upstreamProject);

List<Dependency> deps = upstreamProject.getDependencies();
List<Dependency> oldDeps = backupUpstreamProject.getDependencies();
if (!dependencyListsEquals(deps,oldDeps)) {
if (!dependencyListsEquals(deps, oldDeps)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason why we need to have this check before the next check comparing only compilation dependencies?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, I have removed this check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants