From 97fbb3e0c06ad5eaf8223d789885bf0ad58a9a4a Mon Sep 17 00:00:00 2001 From: Haowei Wen Date: Sat, 25 Mar 2023 18:11:11 +0800 Subject: [PATCH] build with jdk 17 --- .github/workflows/ci.yml | 12 +++++++----- .github/workflows/create_release.yml | 10 ++++++---- README.en.md | 2 +- README.md | 2 +- 4 files changed, 15 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 375d22b..cd557f8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,12 +11,14 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - - name: Setup JDK 8 - uses: actions/setup-java@v1 + - name: Setup JDK + uses: actions/setup-java@v3 with: - java-version: 8 + distribution: temurin + java-version: 17 + cache: gradle - name: Build run: ./gradlew @@ -25,6 +27,6 @@ jobs: run: ./gradlew test - name: Upload artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: path: build/libs/* diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index a255b8f..1fcdbf4 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -66,14 +66,16 @@ jobs: Build number: ${{ steps.parse_pr.outputs.build_number }} - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: ${{ steps.parse_pr.outputs.commit }} - - name: Setup JDK 8 - uses: actions/setup-java@v1 + - name: Setup JDK + uses: actions/setup-java@v3 with: - java-version: 8 + distribution: temurin + java-version: 17 + cache: gradle - id: build name: Build diff --git a/README.en.md b/README.en.md index e846913..5d5864a 100644 --- a/README.en.md +++ b/README.en.md @@ -14,7 +14,7 @@ authlib-injector enables you to build a Minecraft authentication system offering You can download the latest authlib-injector build from [here](https://authlib-injector.yushi.moe/). ## Build -Dependencies: Gradle, JDK 8+ +Dependencies: Gradle, JDK 17+. The target Java platform version is 8. Run: ``` diff --git a/README.md b/README.md index caeb479..e06091b 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ 您可以从[这里](https://authlib-injector.yushi.moe/)获取最新的 authlib-injector。 ## 构建 -构建依赖:Gradle、JDK 8+。 +构建依赖:Gradle、JDK 17+(目标 Java 版本为 8)。 执行以下命令: ```