Skip to content

Commit

Permalink
Homework: update definition of Java version in sample project (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
cagix authored Jan 30, 2025
1 parent 9004130 commit 10971bf
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions homework/src/sample_project/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,9 @@ dependencies {
testImplementation 'org.mockito:mockito-core:5.14.1'
}

java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
sourceCompatibility = JavaVersion.VERSION_21
}
java.toolchain.languageVersion = JavaLanguageVersion.of(21) // use current Long-Term Support (LTS) release
java.sourceCompatibility = JavaVersion.VERSION_21
java.targetCompatibility = JavaVersion.VERSION_21

[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'

Expand Down

0 comments on commit 10971bf

Please sign in to comment.