Skip to content

Commit

Permalink
调整编译版本
Browse files Browse the repository at this point in the history
  • Loading branch information
CaaMoe committed Jan 14, 2024
1 parent 8f1b5aa commit 8677fa9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ jobs:
with:
repository: 'PaperMC/Velocity'

- name: Setup JDK 11
- name: Setup JDK 17
if: env.cache-hit == 'false'
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 11
java-version: 17
cache: 'gradle'

- name: Build Velocity
Expand Down Expand Up @@ -70,11 +70,11 @@ jobs:
- name: 'Checkout'
uses: actions/checkout@v3

- name: Setup JDK 11
- name: Setup JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 11
java-version: 17
cache: 'gradle'

- name: Get Velocity Library
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ subprojects {
}

compileJava {
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_17
}
}

0 comments on commit 8677fa9

Please sign in to comment.