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

chore: Upgrade to Spring Boot 3 RC2 #15098

Merged
merged 4 commits into from Nov 11, 2022
Merged

chore: Upgrade to Spring Boot 3 RC2 #15098

merged 4 commits into from Nov 11, 2022

Conversation

Artur-
Copy link
Member

@Artur- Artur- commented Nov 11, 2022

As Spring Boot now uses Tomcat 10.1, we cannot mix Jetty 11 (servlet 5) and Tomcat 10.1 (servlet 6) in the same test modules so they are all run with Jetty 11 for now.

@project-bot project-bot bot added this to Iteration Reviews in OLD Vaadin Flow ongoing work (Vaadin 10+) Nov 11, 2022
@github-actions
Copy link

github-actions bot commented Nov 11, 2022

Unit Test Results

   958 files  ±0     958 suites  ±0   54m 56s ⏱️ - 4m 14s
6 111 tests ±0  6 057 ✔️ ±0  54 💤 ±0  0 ±0 
6 364 runs   - 5  6 302 ✔️  - 8  62 💤 +3  0 ±0 

Results for commit 831fb9d. ± Comparison against base commit c679109.

♻️ This comment has been updated with latest results.

@@ -235,7 +235,7 @@
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<version>5.0.0</version>
Copy link
Contributor

Choose a reason for hiding this comment

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

FYI: This comment is probably really important for you guys as well: spring-projects/spring-framework#29435 (comment)

Copy link
Member Author

Choose a reason for hiding this comment

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

Do you see any need for servlet 5 support instead of going to servlet 6?

Copy link
Contributor

Choose a reason for hiding this comment

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

We (my company) probably have to go to Servlet 6 now as well, because of SB 3.0 and the EoL Announcement of Tomcat 10.0.x but I'm not sure what the best base-line would be for Vaadin to be honest - you have a little more servlet container / application server to consider. Like Jürgen said in the mentioned comment in the Spring Framework, Jetty 12 isn't GA at and therefore Jetty 11 still uses Servlet 5

@sonarcloud
Copy link

sonarcloud bot commented Nov 11, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 3 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@Artur- Artur- marked this pull request as ready for review November 11, 2022 11:01
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jetty</artifactId>
Copy link
Contributor

Choose a reason for hiding this comment

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

Just want to clarify for myself: this is needed to run all the tests within the same test module with either tomcat or jetty, right? But jetty 11 itself seems to be compatible with the Servlet 6.0, as you bumped jakarta.servlet-api version in the root pom?

Copy link
Member Author

Choose a reason for hiding this comment

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

By default Spring Boot runs on Tomcat. This makes it run on Jetty instead. Spring Boot 3 is still compatible with servlet 5, i.e. Jetty 11 as there is nothing that uses the new Servlet 6 API in Flow or in Spring Boot 3

@mshabarov mshabarov merged commit 73eb107 into master Nov 11, 2022
OLD Vaadin Flow ongoing work (Vaadin 10+) automation moved this from Iteration Reviews to Done - pending release Nov 11, 2022
@mshabarov mshabarov deleted the springboot-3rc2 branch November 11, 2022 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
OLD Vaadin Flow ongoing work (Vaadin ...
  
Done - pending release
Development

Successfully merging this pull request may close these issues.

None yet

4 participants