Skip to content

Conversation

@abhupadh
Copy link
Collaborator

@abhupadh abhupadh commented Mar 6, 2025

Description

upgrading to java17, cloudevents latest version

  • updating pom dependencies to java17 and its compatible version
  • updating cloudevents sdk version to latest 4.0.1

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

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:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.

try {
return ZonedDateTime.parse(jsonParser.getText(), DateTimeFormatter.ISO_OFFSET_DATE_TIME);
} catch (DateTimeException e) {
throw new IllegalArgumentException("could not parse");
Copy link
Member

Choose a reason for hiding this comment

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

Please include the stacktrace

Suggested change
throw new IllegalArgumentException("could not parse");
throw new IllegalArgumentException("Could not parse", e);

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done. please approve

@abhupadh
Copy link
Collaborator Author

@francoisledroff please approve

Copy link
Collaborator

@francoisledroff francoisledroff left a comment

Choose a reason for hiding this comment

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

Not sure we want this...

  • we had customers requesting support for aem6.4 and java 8
    • we still have the maven-compiler-plugin targetting ava 8
    • see #130
  • we surely have aem6.5 customers in a need for java 11
    • and all the GH action build and release are using java 11
  • The only cloudevents sdk classes we use are io.cloudevents.json.ZonedDateTime*
  • introduced here #126 (I guess we should not have done this that way as ISO Date formatting is coming for free in Jackson using @JsonFormat
  • we still have this #16 pending
  • but for now I would rather see this PR merged #231 to get rid of this unwanted cloudEvent sdk dependency

@abhupadh
Copy link
Collaborator Author

abhupadh commented Mar 27, 2025

Keeping this PR open when for when we decide to upgrade this sdk to java17

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.

4 participants