Open ragnor opened 5 months ago
Hi Library depends on the spring API in limited way, only on annotations and in case of spring data on 1-2 classes I doubt that they have been changed so you can safely use this generation with any spring version. Upgrade to higher spring version could only be required in case of breaking change in the mentioned api which we would like to use.
Thanks Tom!
So there are not direct or indirect references to any javax.* class? As this is the main change and challenge when migrating from Spring 5.x to 6.x, (almost) all javax have to be replaced by jakarta.
Sorry I focused my minds on the potential changes just in spring api, and now I double checked if we are using something from the javax package. If you exclude following packages which are not needed for spring code generation:
The only usage of class from javax package is for javax.annotation.Nullable in DefaultNullableTypesStrategy class which will cause that java elements marked with Nullable annotation in the new package will not be used to mark fields or types as nullable in TS but You can create your own implementation of NullableTypesStrategy interface where you can use Nullable from the new package. Not used classes are not loaded in java so DefaultNullableTypesStrategy should not make any problems.
Migration to jakarta package requires new release but now I have busy period I will be able to do it on the beginning of May
There are dependencies in modules ([spring-rest2ts-spring, spring-rest2ts-spring-data) to Spring 5.x and Spring Data 2.x. Will it work with Spring 6.x and Spring Data 3.x out of the box or new version has to be released?