Skip to content

Recompile Java when build file is changed - #561

Merged
turkeylurkey merged 5 commits into
OpenLiberty:mainfrom
turkeylurkey:issue-2126
Nov 3, 2026
Merged

turkeylurkey merged 5 commits into
OpenLiberty:mainfrom
turkeylurkey:issue-2126

Conversation

@turkeylurkey

@turkeylurkey turkeylurkey commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

A lot of code changes due to a small change in strategy.

When the build file changes the former strategy was just to trigger a recompilation of failed Java files. When the dependencies change correctness demands that all the Java files are recompiled. Therefore the three booleans that control recompilation are removed and we call the "trigger" methods instead.

The behaviour with regard to recompileDependencies does not affect build file changes but the Java compilation method uses this option to recompile dependencies. Thus we remove the check of this option when the build file changes.

Also remove the generateFeatures parameter to updateArtifactPaths().

One TODO item remains on line 4368.

Related to OpenLiberty/ci.maven#2126

Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
@turkeylurkey turkeylurkey self-assigned this Oct 29, 2026
@turkeylurkey
turkeylurkey marked this pull request as ready for review October 30, 2026 14:46
@turkeylurkey
turkeylurkey requested a review from TrevCraw October 30, 2026 14:46
…eatures

Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
@turkeylurkey
turkeylurkey merged commit 2f4c89f into OpenLiberty:main Nov 3, 2026
10 checks passed
@turkeylurkey
turkeylurkey deleted the issue-2126 branch November 3, 2026 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants