From 7d7218b3e6ac4b9527b27f69d32c8241a33b924d Mon Sep 17 00:00:00 2001 From: Estecka Date: Thu, 25 Apr 2024 23:28:57 +0200 Subject: [PATCH] Updated github actions --- .github/workflows/build.yml | 20 +++++++++----------- .github/workflows/release.yml | 2 +- build.gradle | 6 +++--- port.md | 11 ++++++++++- 4 files changed, 23 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 665146b..2f59183 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,29 +14,27 @@ jobs: matrix: # Use these Java versions java: [ - 17, # Current Java LTS & minimum supported by Minecraft + 17, # Minimum supported by target version of Minecraft + 21, # Current Java LTS ] - # and run on both Linux and Windows - os: [ubuntu-22.04, windows-2022] - runs-on: ${{ matrix.os }} + runs-on: ubuntu-22.04 steps: - name: checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: validate gradle wrapper - uses: gradle/wrapper-validation-action@v1 + uses: gradle/wrapper-validation-action@v2 - name: setup jdk ${{ matrix.java }} - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: ${{ matrix.java }} distribution: 'microsoft' - name: make gradle wrapper executable - if: ${{ runner.os != 'Windows' }} run: chmod +x ./gradlew - name: build run: ./gradlew build - name: capture build artifacts - if: ${{ runner.os == 'Linux' && matrix.java == '17' }} # Only upload artifacts built from latest java on one OS - uses: actions/upload-artifact@v3 + if: ${{ matrix.java == '21' }} # Only upload artifacts built from latest java + uses: actions/upload-artifact@v4 with: name: Artifacts - path: build/libs/ + path: build/libs/ \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 09f72d1..23a7b7a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: contents: write steps: - name: Download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: Artifacts path: ./ diff --git a/build.gradle b/build.gradle index db2f517..157fc91 100644 --- a/build.gradle +++ b/build.gradle @@ -57,7 +57,7 @@ processResources { } tasks.withType(JavaCompile).configureEach { - it.options.release = 17 + it.options.release = 21 } java { @@ -66,8 +66,8 @@ java { // If you remove this line, sources will not be generated. withSourcesJar() - sourceCompatibility = JavaVersion.VERSION_17 - targetCompatibility = JavaVersion.VERSION_17 + sourceCompatibility = JavaVersion.VERSION_21 + targetCompatibility = JavaVersion.VERSION_21 } jar { diff --git a/port.md b/port.md index a31cd4a..0e80060 100644 --- a/port.md +++ b/port.md @@ -3,4 +3,13 @@ Current master ### 1.20.0 -- `MatrixStack` parameters are replaced with `DrawContext` in most GUI. \ No newline at end of file +#### No Workarounds: +- `MatrixStack` parameters are replaced with `DrawContext` in most GUI. + +### 1.20.5 +#### No Workaround: +- The option screen's layout has changed, causing custom buttons to appear in a different place. +- `WarningScreen::initButtons` was replaced with `getLayout`. +#### Possible Workaround: +- `ResourcePackManager::getEnabledNames` was renamed to `getEnabledIds` (Yarn Mappings changes) +- `MinecraftServer::createDataPackSettings` now takes an extra parameter: The function is simple enough to be reimplemented locally.