-
Notifications
You must be signed in to change notification settings - Fork 251
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
Jakarta, Spring Boot 3 and Spring 6 #917
Conversation
… Boot 3 and Spring 6 - Currently missing modules: CDI (some more research/help needed to fix tests), Shiro (still no jakarta version available) and Cassandra (outdated)
Thank you so much, @MediaMarco <3 :) |
…atting with 2 spaces as indent size
…, should be migrated) and war sample (needs some research)
samples/spring-boot-security/src/main/java/sample/Application.java
Outdated
Show resolved
Hide resolved
samples/spring-boot-security/src/main/java/sample/Application.java
Outdated
Show resolved
Hide resolved
samples/spring-boot-security/src/main/java/sample/Application.java
Outdated
Show resolved
Hide resolved
* Reduce overhead of TogglzTestExecutionListener Signed-off-by: Christoph Dreis <christoph.dreis@innogames.com> * Fix InMemoryStateRepositoryTest Signed-off-by: Christoph Dreis <christoph.dreis@innogames.com> Signed-off-by: Christoph Dreis <christoph.dreis@innogames.com>
// @formatter:on | ||
@Bean | ||
public InMemoryUserDetailsManager userDetailsService() { | ||
UserDetails admin = User.withDefaultPasswordEncoder().username("admin").password("pwd").roles("ADMIN", "USER").build(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The method withDefaultPasswordEncoder
is marked as deprecated where the explanation says that it's recommended just for demo purposes but not for production. We use it exactly for demo purposes, so my suggestion is to add annotation @SupressWarnings("deprecation")
on top of our method userDetailsService
@MediaMarco @OleksandrShkurat wow guys! aweseome what's going on here :) thank you so much for your help and your time you invested in moving this forward :) |
Codecov ReportBase: 55.35% // Head: 55.90% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #917 +/- ##
============================================
+ Coverage 55.35% 55.90% +0.54%
- Complexity 908 913 +5
============================================
Files 180 177 -3
Lines 4572 4495 -77
Branches 594 591 -3
============================================
- Hits 2531 2513 -18
+ Misses 1881 1820 -61
- Partials 160 162 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
@bennetelli thank you. What do you think, is the folder |
…level to be discovered by new defaul bean-discovery-mode annotated in CDI 4.0
CDI module works again, the failing test was fixed. |
@@ -15,7 +15,7 @@ jobs: | |||
strategy: | |||
fail-fast: false | |||
matrix: | |||
jdk: [8, 11] | |||
jdk: [17] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we actually want to set Java 17 as minimum?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question. Spring boot 3 requires Java 17. However, some other modules could work with older versions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's actually hard to say if and how many people are using togglz with legacy Java. I have actually no clue about the different use cases of the togglz users.
@MediaMarco uses togglz with Spring Boot. Many others as well. But not sure about the distribution of number of Spring Boot users and number of all togglz users.. :/
I just checked it. Quarkus is also on Java 17. So I think we should just got for it.
Even if I would open a poll or something like that, I would not get enough responses to know if it would be a show stopper to set java 17 as minimum. Let's just do it and see if someone actually needs it to be on a older Java version or not.
cdi/src/test/java/org/togglz/cdi/container/ManagedFeatureManagerProvider.java
Show resolved
Hide resolved
...-boot/starter/src/test/java/org/togglz/spring/boot/actuate/TogglzSpringBootEndpointTest.java
Outdated
Show resolved
Hide resolved
I would say 90% of the togglz users is using togglz with Spring Boot, but I could also be wrong. |
Please correct me if I'm wrong but currently, there is no any reference to the folder
and this commit 48e83bb removed this profile making the folder unused since that time |
Additionally, can we discuss somehow, what is the defintion of done for this activity?
we could consider some other changes. For example:
|
… re-enabled and updated
Shiro is back! |
Proposal: Create a 4.x-branch and merge this pull request into it. The open topics that don't really touch the Jakarta / Spring / JDK 17 migration can then be solved as individual pull requests. Wouldn't this be better? |
That's true. I started a poll some time ago and asked if someone is still using integration A,B and so on. After getting no responses I just disabled some of them to see if someone opens issues. |
exactly. I would also add PRs like this one: #896 Be careful when migrating to JUnit5. As far as I remember correctly, the Spock frameworks still depends on JUnit 4. We should keep this in mind |
I'm upgrading a side project to Spring Boot 3 and I'm currently blocked by Togglz being incompatible. |
As far as I know |
This is a pull request for a possible 4.x (?) version which includes the migration to the
jakarta
namespace. Spring Boot 3 and Spring 6 are working, Java 17 or higher is required.Currently excluded modules:
Cassandra (Netflix Astyanax is retired, Cassandra Thrift is gone in latest Cassandra version, this module needs some work)
DynamoDB (Uses AWS SDK for Java v1 which only supports Java up to 16, has to be migrated to AWS SDK for Java v2)