Unverified Commit 536de9e5 authored by Copilot's avatar Copilot Committed by GitHub
Browse files

Remove legacy Adopt distributions in v6 (#1185)

* Initial plan

* Remove legacy Adopt distributions

Co-authored-by: default avatarCopilot App <[email protected]>

---------

Co-authored-by: default avatarcopilot-swe-agent[bot] <[email protected]>
Co-authored-by: default avatarBruno Borges <[email protected]>
Co-authored-by: default avatarCopilot App <[email protected]>
parent 9a8c3004
Loading
Loading
Loading
Loading
+17 −17
Changes for .github/workflows/e2e-cache.yml: 17 added lines, 17 removed lines.
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ jobs:
        uses: ./
        id: setup-java
        with:
          distribution: 'adopt'
          distribution: 'temurin'
          java-version: '17'
          cache: gradle
      - name: Create files to cache
@@ -62,7 +62,7 @@ jobs:
        uses: ./
        id: setup-java
        with:
          distribution: 'adopt'
          distribution: 'temurin'
          java-version: '11'
          cache: gradle
          cache-read-only: true
@@ -85,7 +85,7 @@ jobs:
        uses: ./
        id: setup-java
        with:
          distribution: 'adopt'
          distribution: 'temurin'
          java-version: '11'
          cache: maven
      - name: Create files to cache
@@ -111,7 +111,7 @@ jobs:
        uses: ./
        id: setup-java
        with:
          distribution: 'adopt'
          distribution: 'temurin'
          java-version: '11'
          cache: maven
          cache-read-only: true
@@ -138,7 +138,7 @@ jobs:
        uses: ./
        id: setup-java
        with:
          distribution: 'adopt'
          distribution: 'temurin'
          java-version: '11'
          cache: sbt
      - name: Setup SBT
@@ -178,7 +178,7 @@ jobs:
        uses: ./
        id: setup-java
        with:
          distribution: 'adopt'
          distribution: 'temurin'
          java-version: '11'
          cache: sbt
          cache-read-only: true
@@ -207,7 +207,7 @@ jobs:
        uses: ./
        id: setup-java
        with:
          distribution: 'adopt'
          distribution: 'temurin'
          java-version: '17'
          cache: gradle
          cache-dependency-path: __tests__/cache/gradle1/*.gradle*
@@ -236,7 +236,7 @@ jobs:
        uses: ./
        id: setup-java
        with:
          distribution: 'adopt'
          distribution: 'temurin'
          java-version: '11'
          cache: gradle
          cache-dependency-path: __tests__/cache/gradle1/*.gradle*
@@ -260,7 +260,7 @@ jobs:
        uses: ./
        id: setup-java
        with:
          distribution: 'adopt'
          distribution: 'temurin'
          java-version: '11'
          cache: gradle
          cache-dependency-path: __tests__/cache/gradle2/*.gradle*
@@ -281,7 +281,7 @@ jobs:
        uses: ./
        id: setup-java
        with:
          distribution: 'adopt'
          distribution: 'temurin'
          java-version: '11'
          cache: maven
          cache-dependency-path: __tests__/cache/maven/pom.xml
@@ -308,7 +308,7 @@ jobs:
        uses: ./
        id: setup-java
        with:
          distribution: 'adopt'
          distribution: 'temurin'
          java-version: '11'
          cache: maven
          cache-dependency-path: __tests__/cache/maven/pom.xml
@@ -332,7 +332,7 @@ jobs:
        uses: ./
        id: setup-java
        with:
          distribution: 'adopt'
          distribution: 'temurin'
          java-version: '11'
          cache: maven
          cache-dependency-path: |
@@ -359,7 +359,7 @@ jobs:
        uses: ./
        id: setup-java
        with:
          distribution: 'adopt'
          distribution: 'temurin'
          java-version: '11'
          cache: sbt
          cache-dependency-path: __tests__/cache/sbt/*.sbt
@@ -400,7 +400,7 @@ jobs:
        uses: ./
        id: setup-java
        with:
          distribution: 'adopt'
          distribution: 'temurin'
          java-version: '11'
          cache: sbt
          cache-dependency-path: __tests__/cache/sbt/*.sbt
@@ -434,7 +434,7 @@ jobs:
        uses: ./
        id: setup-java
        with:
          distribution: 'adopt'
          distribution: 'temurin'
          java-version: '11'
          cache: sbt
          cache-dependency-path: __tests__/cache/sbt2/*.sbt
@@ -458,7 +458,7 @@ jobs:
      - name: Run setup-java with a custom Maven cache path
        uses: ./
        with:
          distribution: 'adopt'
          distribution: 'temurin'
          java-version: '11'
          cache: maven
          cache-dependency-path: |
@@ -483,7 +483,7 @@ jobs:
      - name: Run setup-java with a custom Maven cache path
        uses: ./
        with:
          distribution: 'adopt'
          distribution: 'temurin'
          java-version: '11'
          cache: maven
          cache-dependency-path: |
−41
Changes for .github/workflows/e2e-local-file.yml: 0 added lines, 41 removed lines.
Original line number Diff line number Diff line
@@ -15,47 +15,6 @@ permissions:
  contents: read

jobs:
  setup-java-local-file-adopt:
    name: Validate installation from local file Adopt
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        os: [macos-latest, windows-latest, ubuntu-latest]
    steps:
      - name: Checkout
        uses: actions/checkout@v7
        with:
          persist-credentials: false
      - name: Download Adopt OpenJDK file
        run: |
          if ($IsLinux) {
            $downloadUrl = "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.10%2B9/OpenJDK11U-jdk_x64_linux_hotspot_11.0.10_9.tar.gz"
            $localFilename = "java_package.tar.gz"
          } elseif ($IsMacOS) {
            $downloadUrl = "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.10%2B9/OpenJDK11U-jdk_x64_mac_hotspot_11.0.10_9.tar.gz"
            $localFilename = "java_package.tar.gz"
          } elseif ($IsWindows) {
            $downloadUrl = "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.10%2B9/OpenJDK11U-jdk_x64_windows_hotspot_11.0.10_9.zip"
            $localFilename = "java_package.zip"
          }
          echo "LocalFilename=$localFilename" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
          (New-Object System.Net.WebClient).DownloadFile($downloadUrl, "$env:RUNNER_TEMP/$localFilename")
        shell: pwsh
      - name: setup-java
        uses: ./
        id: setup-java
        with:
          distribution: 'jdkfile'
          jdk-file: ${{ runner.temp }}/${{ env.LocalFilename }}
          java-version: '11.0.0-ea'
          architecture: x64
      - name: Verify Java version
        env:
          JAVA_PATH: ${{ steps.setup-java.outputs.path }}
        run: bash __tests__/verify-java.sh "11.0.10" "$JAVA_PATH"
        shell: bash

  setup-java-local-file-zulu:
    name: Validate installation from local file Zulu
    runs-on: ${{ matrix.os }}
+4 −4
Changes for .github/workflows/e2e-publishing.yml: 4 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ jobs:
        uses: ./
        id: setup-java
        with:
          distribution: 'adopt'
          distribution: 'temurin'
          java-version: '11'
          server-id: maven
          server-username-env-var: MAVEN_USERNAME
@@ -90,7 +90,7 @@ jobs:
        uses: ./
        id: setup-java
        with:
          distribution: 'adopt'
          distribution: 'temurin'
          java-version: '11'
          server-id: maven
          server-username-env-var: MAVEN_USERNAME
@@ -128,7 +128,7 @@ jobs:
        uses: ./
        id: setup-java
        with:
          distribution: 'adopt'
          distribution: 'temurin'
          java-version: '11'
          server-id: maven
          server-username-env-var: MAVEN_USERNAME
@@ -161,7 +161,7 @@ jobs:
        uses: ./
        id: setup-java
        with:
          distribution: 'adopt'
          distribution: 'temurin'
          java-version: '11'
          server-id: maven
          server-username-env-var: MAVEN_USERNAME
+5 −9
Changes for .github/workflows/e2e-versions.yml: 5 added lines, 9 removed lines.
Original line number Diff line number Diff line
@@ -21,10 +21,9 @@ jobs:
      fail-fast: false
      matrix:
        os: [macos-15-intel, windows-latest, ubuntu-latest]
        distribution: [
        distribution:
          [
            'temurin',
            'adopt',
            'adopt-openj9',
            'zulu',
            'liberica',
            'microsoft',
@@ -35,7 +34,7 @@ jobs:
            'jetbrains',
            'kona',
            'liberica-nik'
          ] # internally 'adopt-hotspot' is the same as 'adopt'
          ]
        version: ['21', '11', '17']
        exclude:
          - distribution: microsoft
@@ -581,11 +580,8 @@ jobs:
      fail-fast: false
      matrix:
        os: *default_os
        distribution: ['adopt', 'adopt-openj9', 'zulu']
        distribution: ['temurin', 'zulu']
        java-version-file: ['.java-version', '.tool-versions']
        exclude:
          - os: macos-latest
            distribution: adopt-openj9
    steps:
      - *checkout_step
      - name: Create .java-version file
@@ -613,7 +609,7 @@ jobs:
      fail-fast: false
      matrix:
        os: *default_os
        distribution: ['adopt', 'zulu', 'liberica']
        distribution: ['temurin', 'zulu', 'liberica']
        java-version-file: ['.java-version', '.tool-versions', '.sdkmanrc']
    steps:
      - *checkout_step
+3 −4
Changes for README.md: 3 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -33,6 +33,8 @@ This action allows you to work with Java and Scala projects.

  See [GPG](docs/advanced-usage.md#gpg) for details.

- **Legacy AdoptOpenJDK distributions were removed.** Replace `adopt` or `adopt-hotspot` with `temurin`, and replace `adopt-openj9` with `semeru`.

## Breaking changes in V5

- Upgraded action from node20 to node24
@@ -101,7 +103,7 @@ For more details, see the full release notes on the [releases page](https://git

### Download integrity verification

When a selected distribution publishes an authoritative checksum for an archive, `setup-java` automatically verifies each downloaded JDK, JRE, or JMOD archive before extraction and caching. No input is required. Automatic checksum verification is currently available for `temurin`, `semeru`, `adopt`, `corretto`, `dragonwell`, `kona`, `sapmachine`, `graalvm`, `graalvm-community`, `zulu`, `oracle`, `oracle-openjdk`, `microsoft`, and `jetbrains`.
When a selected distribution publishes an authoritative checksum for an archive, `setup-java` automatically verifies each downloaded JDK, JRE, or JMOD archive before extraction and caching. No input is required. Automatic checksum verification is currently available for `temurin`, `semeru`, `corretto`, `dragonwell`, `kona`, `sapmachine`, `graalvm`, `graalvm-community`, `zulu`, `oracle`, `oracle-openjdk`, `microsoft`, and `jetbrains`.

Distributions or individual releases without an authoritative checksum continue to install normally, with the omission reported only in debug logs. Archives resolved directly from the runner tool cache are not downloaded again and therefore are not reverified.

@@ -152,8 +154,6 @@ Currently, the following distributions are supported:
|-|-|-|
| `temurin` | [Eclipse Temurin](https://adoptium.net/) | [`temurin` license](https://adoptium.net/about.html)
| `zulu` | [Azul Zulu OpenJDK](https://www.azul.com/downloads/zulu-community/?package=jdk) | [`zulu` license](https://www.azul.com/products/zulu-and-zulu-enterprise/zulu-terms-of-use/) |
| `adopt` or `adopt-hotspot` | [AdoptOpenJDK Hotspot](https://adoptopenjdk.net/) | [`adopt-hotspot` license](https://adoptopenjdk.net/about.html) |
| `adopt-openj9` | [AdoptOpenJDK OpenJ9](https://adoptopenjdk.net/) | [`adopt-openj9` license](https://adoptopenjdk.net/about.html) |
| `liberica` | [Liberica JDK](https://bell-sw.com/) | [`liberica` license](https://bell-sw.com/liberica_eula/) |
| `liberica-nik` | [Liberica Native Image Kit](https://bell-sw.com/pages/downloads/native-image-kit/) | [`liberica-nik` license](https://bell-sw.com/liberica_nik_eula/) |
| `microsoft` | [Microsoft Build of OpenJDK](https://www.microsoft.com/openjdk) | [`microsoft` license](https://docs.microsoft.com/java/openjdk/faq)
@@ -171,7 +171,6 @@ Currently, the following distributions are supported:

> [!NOTE]
> - The different distributors can provide discrepant list of available versions / supported configurations. Please refer to the official documentation to see the list of supported versions.
> - AdoptOpenJDK got moved to Eclipse Temurin and won't be updated anymore. It is highly recommended to migrate workflows from `adopt` and `adopt-openj9`, to `temurin` and `semeru` respectively, to keep receiving software and security updates. See more details in the [Good-bye AdoptOpenJDK post](https://blog.adoptopenjdk.net/2021/08/goodbye-adoptopenjdk-hello-adoptium/).
> - Oracle OpenJDK builds are created and hosted by Oracle. After a limited number of releases, Oracle archives these builds and no longer provides security updates. To continue receiving security patches, users must move to Oracle JDK or choose a different vendor.
> - For Azul Zulu OpenJDK, architecture `arm64` is mapped to `aarch64` when querying the Azul Metadata API.
> - To comply with the GraalVM Free Terms and Conditions (GFTC) license, it is recommended to use GraalVM JDK 17 version 17.0.12, as this is the only version of GraalVM JDK 17 available under the GFTC license. Additionally, it is encouraged to consider upgrading to GraalVM JDK 21, which offers the latest features and improvements.
Loading