Ok, everyone, I have done this.

If you want to build WildFly main you need to use SE 17 or higher to build. It still outputs SE 11 binaries and should fail if you use language or SE features higher than SE 11.

If you want to test with SE 11, first build with 17 and then switch to SE 11 and

mvn test -DnoCompile -rf testsuite

I'd like to get rid of the requirement for that '-rf testsuite' but I don't know when I'll get to it, if ever. Resolving https://issues.redhat.com/browse/WFLY-19180 may be all that's needed, but I'm not sure.

Cheers,
Brian


On Wed, Mar 6, 2024 at 9:13 AM Richard Opalka <ropalka@redhat.com> wrote:
I like the proposal!

On Tue, Feb 27, 2024 at 11:48 PM Brian Stansberry <brian.stansberry@redhat.com> wrote:
WDYT about doing in main what I did in the EE11 topic branch?


I did that in EE 11 because we know some EE 11 APIs or impls will require SE 17. So we need the SE 17 compiler to build with those deps. But we want our own (WFLY and WFCORE) code to remain SE 11 compatible. So the resulting binary level must be SE 11 and no language features or SE APIs > 11 can be used by our own code.

Trying to only do this in the EE11 branch has proven to be a pain, because a bunch of things like github actions are using SE 11 to build and that blows up when run against the EE11 branch.

If we did this I'd add a profile that could set the compiler version back to 11. CI jobs that need to both build the server and run the testsuite on 11 could activate that profile.

Over the course of this year the SE 11 build and test use cases should become the secondary cases, ones that need special handling Iike activating a profile. SE 17 should become the 'default, it just works with no special effort' case. Supporting both EE 10 and 11 in different feature packs is one reason to keep SE 11 support around, but even with EE 10 our 'typical' case should become SE 17, not SE 11.

Thoughts?

--
Brian Stansberry
Principal Architect, Red Hat JBoss EAP
WildFly Project Lead
He/Him/His
_______________________________________________
wildfly-dev mailing list -- wildfly-dev@lists.jboss.org
To unsubscribe send an email to wildfly-dev-leave@lists.jboss.org
Privacy Statement: https://www.redhat.com/en/about/privacy-policy
List Archives: https://lists.jboss.org/archives/list/wildfly-dev@lists.jboss.org/message/D5YUJLK3TUHBUH36V6SUTFGOALPB2LPA/


--
Brian Stansberry
Principal Architect, Red Hat JBoss EAP
WildFly Project Lead
He/Him/His