I had started a discussion on the mailing list about this.
In https://github.com/jakartaee/rest/pull/1168 the project was updated to require Java SE 21. We don't however use any Java SE 21 specific features. In my opinion it would be better for adoption to have a minimum of Java SE 17.
There are consumers outside of Jakarta EE that consume the Jakarta REST spec. Some of these consumers are in environments where they are likely not able to use the latest version of Java for various reasons.
I propose we compile down to Java 17, but keep the minimum JDK requirement for compiling at Java 21. No other individual specification, other than Jakarta Concurrency, are requiring Java 21. There is nothing in the specification that requires a project to use any specific version of Java at all.
I had started a discussion on the mailing list about this.
In https://github.com/jakartaee/rest/pull/1168 the project was updated to require Java SE 21. We don't however use any Java SE 21 specific features. In my opinion it would be better for adoption to have a minimum of Java SE 17.
There are consumers outside of Jakarta EE that consume the Jakarta REST spec. Some of these consumers are in environments where they are likely not able to use the latest version of Java for various reasons.
I propose we compile down to Java 17, but keep the minimum JDK requirement for compiling at Java 21. No other individual specification, other than Jakarta Concurrency, are requiring Java 21. There is nothing in the specification that requires a project to use any specific version of Java at all.