Skip to content

Removes the bundle generator from the runtime - #22820

Merged
vmuzikar merged 1 commit into
keycloak:mainfrom
shawkins:iss22573
Aug 31, 2023
Merged

Removes the bundle generator from the runtime#22820
vmuzikar merged 1 commit into
keycloak:mainfrom
shawkins:iss22573

Conversation

@shawkins

Copy link
Copy Markdown
Contributor

Closes #22573

@shawkins
shawkins requested review from a team as code owners August 30, 2023 11:39
@ghost ghost added the team/cloud-native label Aug 30, 2023

@vmuzikar vmuzikar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, thanks @shawkins

@ASzc Can you please confirm this approach of moving the unproductized dep to build time is ok for you?

@vmuzikar
vmuzikar requested a review from ASzc August 30, 2023 13:18
@shawkins

Copy link
Copy Markdown
Contributor Author

Can you please confirm this approach of moving the unproductized dep to build time is ok for you?

At the provided scope, we'll fail to build with the error:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:3.1.1:single (assemble-bundle) on project keycloak-operator: Failed to create assembly: Error creating assembly archive olm: archive cannot be empty

So if a filtered optional dependency does not work, then we'll need some additional upstream changes.

@vmuzikar

Copy link
Copy Markdown
Contributor

So if a filtered optional dependency does not work, then we'll need some additional upstream changes.

Can't we scope it to provided?

@shawkins

Copy link
Copy Markdown
Contributor Author

No, that's what the first part of the comment is saying.

@ASzc

ASzc commented Aug 30, 2023

Copy link
Copy Markdown
Contributor

LGTM, optional doesn't seem to cause any issues with prod, and I confirm that it removes the bundle generator jar from the zip

@vmuzikar

Copy link
Copy Markdown
Contributor

No, that's what the first part of the comment is saying.

Sorry, read it wrong. :) Optional seems to work, let's wait for the tests and we're good to go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove bundle generator dependency from the Operator dist

3 participants