-
Notifications
You must be signed in to change notification settings - Fork 91
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
Call generate features on compile dependency changes in dev mode flow #1454
Conversation
Follow-up issue opened for the scenario where generate-features runs twice on build file change for multi module projects: #1456 |
Signed-off-by: Kathryn Kodama <[email protected]>
Signed-off-by: Kathryn Kodama <[email protected]>
84d08ee
to
2cd21a3
Compare
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)) { |
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.
Is there a reason why we need to have this check before the next check comparing only compilation dependencies?
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.
Good point, I have removed this check.
liberty-maven-plugin/src/main/java/io/openliberty/tools/maven/server/GenerateFeaturesMojo.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Kathryn Kodama <[email protected]>
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