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
Switch to distribute jars generated by Java 11 allowing Jakarta cdi 4 upgrade #4119
Conversation
Bumps [jakarta.enterprise.cdi-api](https://github.com/cdi-spec/cdi) from 3.0.0 to 4.0.1. - [Release notes](https://github.com/cdi-spec/cdi/releases) - [Commits](jakartaee/cdi@3.0.0...4.0.1) --- updated-dependencies: - dependency-name: jakarta.enterprise:jakarta.enterprise.cdi-api dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
…ibase/liquibase into github-action-jakarta-cdi-4-upgrade
.github/workflows/build.yml
Outdated
@@ -273,10 +279,10 @@ jobs: | |||
script: | | |||
core.setOutput("testResultsArtifact", "liquibase-test-results-integration-${{ matrix.testSystem }}".replace(/[^a-zA-Z0-9\-_]/g, "_")); | |||
|
|||
- name: Set up JDK 8 |
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.
Keep 8 so we can test with 8
.github/workflows/build.yml
Outdated
- name: Build & Test Java 8 | ||
if: ${{ matrix.java == 8}} | ||
run: | | ||
mvn -B "-Dbuild.repository.owner=${{ needs.setup.outputs.thisRepositoryOwner }}" "-Dbuild.repository.name=${{ needs.setup.outputs.thisRepositoryName }}" "-Dbuild.branch=${{ needs.setup.outputs.thisBranchName }}" "-Dbuild.number=${{ github.run_number }}" "-Dbuild.commit=${{ needs.setup.outputs.thisSha }}" "-DtrimStackTrace=false" -pl '!liquibase-dist,!liquibase-cdi-jakarta' clean test package surefire-report:report | ||
- name: Build & Test |
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.
Can you change this step to be called something like "Build & Test all other Java versions"
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.
I'm calling it non-jdk-8 to be compliant with the pom profile
liquibase-cdi-jakarta/src/main/java/liquibase/integration/jakarta/cdi/CDIBootstrap.java
Show resolved
Hide resolved
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.
PR updates Weld and the Jakarata Enterprise CDI API dependencies for liquibase-cdi-jakarta
. Weld is now 5.1.0.Final
and the CDI API is 4.0.1
. The associated GitHub workflows are updated to build the Liquibase Jakarta CDI plugin with Java 11 as required by CDI 5.
- No testing required.
APPROVED
Impact
Description
cdi version 5 requires Java 11, but liquibase still supports Java 8. . In order to use it some changes were made:
With that we are able to accomplish the dependabot requirements:
Relevant comments from dependabot issue: #3891 (comment)