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

Update to JDK 17 and SpringBoot 3 #482

Merged
merged 8 commits into from Apr 1, 2023

Conversation

mehdihasan
Copy link
Contributor

  • Use of JDK 17
  • Migration from SpringFox to SpringDoc OpenAPI

* Use of JDK 17
* Migration from SpringFox to SpringDoc OpenAPI
@davideicardi
Copy link
Collaborator

davideicardi commented Mar 14, 2023

Thank you @mehdihasan ! This is a huge step forward. From what you can see there is any drawback or problems with this new versions? I see a problem in the CI. Do you know what is wrong? (it could be unrelated...)

@mehdihasan
Copy link
Contributor Author

mehdihasan commented Mar 14, 2023

Hi @davideicardi, thanks for looking into this. I needed to upgrade the project to SpringBoot 3 - which ended up to migration from Swagger to OpenAPI as well - so it became a huge change. I thought it might be something helpful for others as well. Initially my idea was to push it into a branch named springboot-3.0.4. However, I can't be able to create the branch - so ended up raising a pull request in master.

It looks like the CI script is using JDK 11 to compile the code - which ended up into the failure. I have compiled the code with JDK 17.

I will try the JDK 11 and come back soon.

@Bert-R
Copy link
Collaborator

Bert-R commented Mar 14, 2023

It looks like the CI script is using JDK 11 to compile the code - which ended up into the failure. I have compiled the code with JDK 17.

I will try the JDK 11 and come back soon.

@mehdihasan May I suggest to update the workflow files in .github/workflows instead? Just upgrade Java to 17. That should make the build of this PR pass.

@mehdihasan
Copy link
Contributor Author

@Bert-R agreed and done. #484

@Bert-R
Copy link
Collaborator

Bert-R commented Mar 14, 2023

Instead, just add the updates of pull_request.yml and master.yml to this current PR (#482), so it can be handled as a single unit.

* Use of JDK 17
* Migration from SpringFox to SpringDoc OpenAPI
* Update git workflow JDK version to 17
Copy link
Contributor Author

@mehdihasan mehdihasan left a comment

Choose a reason for hiding this comment

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

Update workflow to use JDK 17

@Bert-R
Copy link
Collaborator

Bert-R commented Mar 14, 2023

@davideicardi The PR build now waits for your approval (to ensure someone is not making malicious PRs through workflow updates).

Copy link
Collaborator

@davideicardi davideicardi left a comment

Choose a reason for hiding this comment

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

LGTM!

pom.xml Outdated Show resolved Hide resolved
@mehdihasan mehdihasan changed the title Update for SpringBoot 3.0.4 Update to JDK 17 and SpringBoot 3 Mar 17, 2023
Copy link
Collaborator

@Bert-R Bert-R left a comment

Choose a reason for hiding this comment

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

Great improvement, appreciated!
I've added a few small comments.

When I saw this the first time, I didn't feel it deserves a major version upgrade as it would remain strictly backward compatible, but now I see that is not exactly true:

  • People that run the JAR directly will need Java 17
  • People that use the OpenAPI specification will need use a different endpoint and a new spec version.

So, a major version upgrade makes sense to me.

src/main/java/kafdrop/controller/AclController.java Outdated Show resolved Hide resolved
pom.xml Show resolved Hide resolved
* Update tags to the controllers
* Update spring-doc version to 2.0.4
* Rename SwaggerConfiguration to OASConfiguration
* Update documentation on OpenAPI Specification
* Springfox libraries don't work with Spring Boot 3.x.x, and it is not being updated for last ~3 years. It is recommended to migrate to Springdoc.
* Springdoc enabling and disabling is part of the library now
@mehdihasan mehdihasan requested a review from Bert-R March 27, 2023 17:29
Copy link
Collaborator

@Bert-R Bert-R left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks for the contribution!

@davideicardi If you're OK with it, it can be merged. See the comments about Swagger UI and about compatibility.

@davideicardi davideicardi merged commit d64253d into obsidiandynamics:master Apr 1, 2023
1 check passed
nerajchand pushed a commit to fairfaxmedia/charts that referenced this pull request May 3, 2024
This change will bump the version of the kafdrop image.

It includes numerous Dependency updates as well as bugfixes, and
security patching.

Also includes some shiny new features such as:

- Added Message Search functionality
[#288](obsidiandynamics/kafdrop#288)
- Enabled dependabot to update deps and base image tag
[#404](obsidiandynamics/kafdrop#404)

**Breaking Changes**:

- Update to JDK 17 and SpringBoot 3 in upstream
[#482](obsidiandynamics/kafdrop#482)

For the complete list of changes see:

[Releases](https://github.com/obsidiandynamics/kafdrop/releases)

[Comparing
Changes](obsidiandynamics/kafdrop@3.30.0...4.0.1)
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.

None yet

3 participants