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

[#1383] Spring Boot 3 migration Step 2 #1559

Merged

Conversation

avgustinmm
Copy link
Contributor

@avgustinmm avgustinmm commented Jan 19, 2024

Some of the steps:

  1. Change spring version parent and versions in root pom.xml
  2. update eclipselink versions
  3. javax.annotation -> jakarta.annotation (*.java)
  4. javax.persistence -> jakarta.persistence (*.java)
  5. javax.servlet -> jakarta.servlet (*.java, pom.xml)
  6. javax.validation:validation-api -> jakarta.validation:jakarta.validation-api (pom.xml)
  7. javax.validation -> jakarta.validation (*.java)
  8. javax.transaction -> jakarta.transaction (*.java)
  9. replace spring-cloud-stream-binder-test (hawkbit-repository-test) with
<dependency>
   <groupId>org.springframework.cloud</groupId>
   <artifactId>spring-cloud-stream-test-binder</artifactId>
</dependency>

, TestSupportBinderAutoConfiguration.class }) -> }) @import(TestChannelBinderConfiguration.class)
10. Set to Simple UI standard parent
11. requestMatchers to securityMatcher
12. @SpringBootApplication(scanBasePackages = "org.eclipse.hawkbit") (otherwise, for instance, flyway doesn't work - suffix is default ".sql", not H2.sql and don't differentiate dbs? strange is there a change?)
13. @nonempty for Long leads to validation exception - replaced with @NotNull
14. RSQLUtilityTest.correctRsqlBuildsPredicate - fixed - mock query builder add method
15. https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Migration-Guide#spring-mvc-and-webflux-url-matching-changes - aliases as 'targets/' return 404 - remove trailing slash
16. firewall tests (allowedHostNameWithNotAllowedHost) don't throw a 'rejected exception' but return 400 instead (as probably is expected anyway)
17. Fixed tenant listing not to get the whole JPA object in order not to mess with the multitenancy of the distribution set types

Signed-off-by: Marinov Avgustin <[email protected]

@hawkbit-bot
Copy link

Can one of the admins verify this patch?

Some of the steps:

1. Change spring version parent and versions in root pom.xml
2. update eclipselink versions
3. javax.annotation -> jakarta.annotation (*.java)
4. javax.persistence -> jakarta.persistence (*.java)
5. javax.servlet -> jakarta.servlet (*.java, pom.xml)
6. javax.validation:validation-api -> jakarta.validation:jakarta.validation-api (pom.xml)
7. javax.validation -> jakarta.validation (*.java)
8. javax.transaction -> jakarta.transaction (*.java)
9. replace spring-cloud-stream-binder-test (hawkbit-repository-test) with
```
<dependency>
   <groupId>org.springframework.cloud</groupId>
   <artifactId>spring-cloud-stream-test-binder</artifactId>
</dependency>
```
, TestSupportBinderAutoConfiguration.class }) -> })
@import(TestChannelBinderConfiguration.class)
10. Set to Simple UI standard parent
11. requestMatchers to securityMatcher
12. @SpringBootApplication(scanBasePackages = "org.eclipse.hawkbit") (otherwise for instance flyway doesn't work - suffix is default ".sql", not H2.sql and don't differentiate dbs? strange is there a change?)
13. @nonempty for Long leads to validation exception - replaced with @NotNull
14. RSQLUtilityTest.correctRsqlBuildsPredicate - fixed - mock query builder add method
15. https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Migration-Guide#spring-mvc-and-webflux-url-matching-changes - aliases as targers/ return 404 - remove trailing slash
16. firewall tests (allowedHostNameWithNotAllowedHost) doesn't throw 'rejected exception' but return 400 instead (as probably is expected anyway)

Signed-off-by: Marinov Avgustin <[email protected]
@avgustinmm avgustinmm force-pushed the 1383/spring_boot_3_migration_step2 branch from 733462c to a553026 Compare January 20, 2024 09:30
Tenant metadata is not multitenancy aware while depend on distribution set type
which is. Thus querying all tenant metadata (in non tenant context) sometimes leads to
resolution of distribution set type which is tenant scoped and leads to problems.

So, now listing tenant lists just their ids - not fill entities.

Signed-off-by: Marinov Avgustin <[email protected]>
@avgustinmm avgustinmm force-pushed the 1383/spring_boot_3_migration_step2 branch from 6e2c323 to 1023e3b Compare January 20, 2024 13:37
@avgustinmm avgustinmm marked this pull request as ready for review January 20, 2024 13:57
@avgustinmm avgustinmm merged commit 7440d90 into eclipse-hawkbit:master Jan 20, 2024
2 checks passed
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