Skip to content

Commit

Permalink
Update build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
AV306 committed Jul 2, 2022
1 parent f3a1214 commit defc25e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ plugins {
id 'maven-publish'
}

sourceCompatibility = JavaVersion.VERSION_18
targetCompatibility = JavaVersion.VERSION_18
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17

archivesBaseName = project.archives_base_name
version = project.mod_version
Expand Down Expand Up @@ -70,7 +70,7 @@ processResources {

tasks.withType(JavaCompile).configureEach {
// Minecraft 1.18 (1.18-pre2) upwards uses Java 17.
it.options.release = 18
it.options.release = 17

// I used switch patterns, which are currently
// in preview.
Expand Down Expand Up @@ -109,6 +109,6 @@ publishing {

java {
toolchain {
languageVersion = JavaLanguageVersion.of( 18 )
languageVersion = JavaLanguageVersion.of( 17 )
}
}

0 comments on commit defc25e

Please sign in to comment.