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

[WIP] Upgrade Java to version 17 #1377

Closed
wants to merge 5 commits into from

Conversation

KeshavRathi
Copy link

Java needs to upgraded to 1.17 for Spring 6

Description

Spring 6 requires Java version greater than 17

Motivation and Context

My project uses riptide and we want to upgrade the Spring version and cannot do that because riptide is currently at previous version of Spring

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.

@KeshavRathi KeshavRathi changed the title Upgrade Java to version 17 [WIP] Upgrade Java to version 17 Jan 15, 2023
@fatroom
Copy link
Member

fatroom commented Jan 16, 2023

@KeshavRathi thank you for contribution: you need to change JDK version for GH actions to adjust CI builds: https://github.com/zalando/riptide/blob/main/.github/workflows/build.yaml

@KeshavRathi
Copy link
Author

@KeshavRathi thank you for contribution: you need to change JDK version for GH actions to adjust CI builds: https://github.com/zalando/riptide/blob/main/.github/workflows/build.yaml

Should it be 1.7 or 17.0 in the build.yaml?

@fatroom
Copy link
Member

fatroom commented Jan 16, 2023

Should it be 1.7 or 17.0 in the build.yaml?

According to https://github.com/actions/setup-java it's enough to specify 17 there

@@ -1 +1 @@
1.8
17.0
Copy link
Member

Choose a reason for hiding this comment

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

please verify your IDE settings, to add new lines at the end of the files

@@ -97,6 +101,16 @@
<groupId>org.zalando</groupId>
<artifactId>riptide-httpclient</artifactId>
</dependency>
<dependency>
<groupId>jakarta.xml.soap</groupId>
<artifactId>jakarta.xml.soap-api</artifactId>
Copy link
Member

Choose a reason for hiding this comment

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

jakarta.xml.ws-api should be enough here instead of soap and bind separate artefacts

Copy link
Author

Choose a reason for hiding this comment

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

There are compilation errors if I don't include them

Copy link
Member

Choose a reason for hiding this comment

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

hm, just verified - it's because spring 5 still depends on Jakarta 2.3.3 (packages javax.xml). So I'm not sure how new changes to Jakarta namespaces will work with spring 5.

Can you try to move to jdk17 but still use javax.xml for web services as first step?

Copy link
Author

@KeshavRathi KeshavRathi Jan 16, 2023

Choose a reason for hiding this comment

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

Sure. Will try that tomorrow. Thanks

@fatroom fatroom mentioned this pull request Jan 31, 2023
@fatroom
Copy link
Member

fatroom commented Jan 31, 2023

Closed in favour #1395

@fatroom fatroom closed this Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants