Closed poikilotherm closed 2 years ago
Looks like downgrading Spring to current release 5.3.22
and relaxing the JDK version requirement of the module made the build run on 11 again.
We could add a profile to activate when testing with JDK 17 to include Spring 6.0.0-M4
...
Rethinking, it might be wiser to go for an enforcer rule to require compilation with JDK 17 in the rewrite-parent.
That way, the Spring integration will be compatible, which is nice.
In the same go, the rewrite-parent should add a Maven Compiler config to use release
instead of source
/target
.
And anyway trying to compile with JDK 11 (like me on first tries) will fail early, avoiding strange errors.
Spring 5.x is not compatible with Jakarta EE 9, that's why I updated to Spring 6 for the develop-jakartaee-9
branch.
Spring 6 in turn is compiled against JDK 17, that's why Java 17 is needed for compilation.
@poikilotherm Hmm. An enforcer rule in parent would be my preference I think. Was this issue addressed in your PR, or do we still need to decide and take action on this?
The enforcer rule is in place in the EE10 branch
Do we need to take any more action on this issue? I believe the creation of the ee10 branch should resolve this?
Yes, I agree on that. I'll close this one as solved. Thanks!
Thanks everyone involved with #304
While trying to update to EE 10 I noticed I could not fully build the packages using Java 11 LTS only. Looks like this slipped through because of the Github Action using JDK 17 and 18 only.
Maven Enforcer also forbids
rewrite-integration-spring
to be executed with JDK 11.It fails at
rewrite-config-prettyfaces
:On a related note I see that the release to Maven Central is also done using Java 17. I'm not sure this will retain compatibility with JDK 11 using projects. Jakarta EE 10 requires JDK 11 minimum.