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

Upgrade Liquibase to 4.7.1 and substitute new OSGi and h2 bits #23118

Merged
merged 1 commit into from
Jan 24, 2022
Merged

Upgrade Liquibase to 4.7.1 and substitute new OSGi and h2 bits #23118

merged 1 commit into from
Jan 24, 2022

Conversation

famod
Copy link
Member

@famod famod commented Jan 23, 2022

Not pretty, but that was to be expected after #22785 (comment).

This is the first time I have implemented such substitutions, so maybe there is a more clever approach.
I basically went through the errors that popped up in the IT module and tried to fix them as good as I could.

I also checked the quickstart (with native) and my project (no native). Native image size of the quickstart is more or less the same.

I can also adjust the mongodb flavor. It appears to me that this module is pretty much c&p? I had to adjust liquibase-mongodb right away to keep CI happy.

@famod famod requested a review from gsmet January 23, 2022 19:28
@quarkus-bot quarkus-bot bot added area/dependencies Pull requests that update a dependency file area/liquibase labels Jan 23, 2022
private static String getBuildInfo(String propertyId) {
// this is a bit of a mess: we have to get rid of the entire first part that accesses osgi classes
// and only retain the second part
// taken from: https://github.com/liquibase/liquibase/blob/v4.7.1/liquibase-core/src/main/java/liquibase/util/LiquibaseUtil.java#L57-L91
Copy link
Member Author

Choose a reason for hiding this comment

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

IMO, that copied code could be much simpler for Quarkus, but I rather copied it 1:1. Not sure what the general policy is here.

Copy link
Member

@gsmet gsmet left a comment

Choose a reason for hiding this comment

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

This is unfortunate we have to do all this but the changes look good considering the situation.

@gsmet gsmet merged commit 251162d into quarkusio:main Jan 24, 2022
@quarkus-bot quarkus-bot bot added this to the 2.8 - main milestone Jan 24, 2022
@famod famod deleted the liquibase-4.7 branch January 24, 2022 12:30
@famod
Copy link
Member Author

famod commented Jan 24, 2022

I cannot promise anything but I'll think about how this can be improved on the Liquibase side.

@gsmet gsmet modified the milestones: 2.8 - main, 2.7.0.Final Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dependencies Pull requests that update a dependency file area/liquibase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants