Skip to content

Commit 1fd50c5

Browse files
committed
Fix java version
1 parent daa5f33 commit 1fd50c5

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
fetch-depth: 0
1313
fetch-tags: true
1414

15-
- name: Setup JDK 21
15+
- name: Setup JDK 17
1616
uses: actions/setup-java@v4
1717
with:
18-
java-version: '21'
18+
java-version: '17'
1919
distribution: 'temurin'
2020

2121
- name: Build with Gradle

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ subprojects {
7979
// If you remove this line, sources will not be generated.
8080
withSourcesJar()
8181

82-
sourceCompatibility = JavaVersion.VERSION_21
83-
targetCompatibility = JavaVersion.VERSION_21
82+
sourceCompatibility = JavaVersion.VERSION_17
83+
targetCompatibility = JavaVersion.VERSION_17
8484
}
8585

8686
tasks.withType(JavaCompile).configureEach {
87-
it.options.release = 21
87+
it.options.release = 17
8888
}
8989

9090
// Configure Maven publishing.

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ neoforge_loaderversion = [4,)
2424
neoforge_loaderrange = [20.4,)
2525

2626
#Quilt & Fabric JSON Properties
27-
fabric_java = >=21
27+
fabric_java = >=17
2828
fabric_fabricapi = *
2929

3030
# Compile Dependencies

0 commit comments

Comments
 (0)