Skip to content
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

Update documentation to mention Java 17+ baseline #29514

Closed
Andrew-Russell-fingo opened this issue Nov 18, 2022 · 2 comments
Closed

Update documentation to mention Java 17+ baseline #29514

Andrew-Russell-fingo opened this issue Nov 18, 2022 · 2 comments
Assignees
Labels
type: documentation A documentation task
Milestone

Comments

@Andrew-Russell-fingo
Copy link

I believe that the latest version of spring-context-6.0.0.jar
And uploaded to Maven Central
Has been compiled with the wrong jvm version, so cannot work inside a jdk8 vm

Last Version: 5.3.24, compiled for JDK8
From https://repo1.maven.org/maven2/org/springframework/spring-context/5.3.24/spring-context-5.3.24.module

{
  "formatVersion": "1.1",
  "component": {
    "group": "org.springframework",
    "module": "spring-context",
    "version": "5.3.24",
    "attributes": {
      "org.gradle.status": "release"
    }
  },
  "createdBy": {
    "gradle": {
      "version": "7.5.1"
    }
  },
  "variants": [
    {
      "name": "apiElements",
      "attributes": {
        "org.gradle.category": "library",
        "org.gradle.dependency.bundling": "external",
        "org.gradle.jvm.version": 8,
        "org.gradle.libraryelements": "jar",
        "org.gradle.usage": "java-api",
        "org.jetbrains.kotlin.localToProject": "public",
        "org.jetbrains.kotlin.platform.type": "jvm"
      },
...

Now from version 6.0.0 , compiled for JDK17
https://repo1.maven.org/maven2/org/springframework/spring-context/6.0.0/spring-context-6.0.0.module

{
  "formatVersion": "1.1",
  "component": {
    "group": "org.springframework",
    "module": "spring-context",
    "version": "6.0.0",
    "attributes": {
      "org.gradle.status": "release"
    }
  },
  "createdBy": {
    "gradle": {
      "version": "7.5.1"
    }
  },
  "variants": [
    {
      "name": "apiElements",
      "attributes": {
        "org.gradle.category": "library",
        "org.gradle.dependency.bundling": "external",
        "org.gradle.jvm.environment": "standard-jvm",
        "org.gradle.jvm.version": 17,
        "org.gradle.libraryelements": "jar",
        "org.gradle.usage": "java-api",
        "org.jetbrains.kotlin.platform.type": "jvm"
      },
...
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Nov 18, 2022
@ttddyy
Copy link
Contributor

ttddyy commented Nov 18, 2022

@Andrew-Russell-fingo Spring Framework 6 requires Java 17+ as a baseline. So, it doesn't work with Java8.

As a major revision of the core framework, Spring Framework 6.0 comes with a Java 17+ baseline and a move to Jakarta EE 9+ (in the jakarta namespace), with a focus on the recently released Jakarta EE 10 APIs such as Servlet 6.0 and JPA 3.1.

From https://spring.io/blog/2022/11/16/spring-framework-6-0-goes-ga

Though, looking at the 6.0.0 documentation, it could be read it works with Java8+.

As of Spring Framework 5.1, Spring requires JDK 8+ (Java SE 8+) and provides out-of-the-box support for JDK 11 LTS. Java SE 8 update 60 is suggested as the minimum patch release for Java 8, but it is generally recommended to use a recent patch release.

https://docs.spring.io/spring-framework/docs/current/reference/html/overview.html#overview

I believe this documentation needs an update.

@sdeleuze sdeleuze changed the title Maven Central has wrongly compiled spring-context-6.0.0.jar Update documentation to mention Java 17+ baseline Nov 18, 2022
@sdeleuze sdeleuze added type: documentation A documentation task and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Nov 18, 2022
@sdeleuze sdeleuze self-assigned this Nov 18, 2022
@sdeleuze sdeleuze added this to the 6.0.1 milestone Nov 18, 2022
@Andrew-Russell-fingo
Copy link
Author

Thanks for resolving the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation A documentation task
Projects
None yet
Development

No branches or pull requests

4 participants