Skip to content

Commit

Permalink
Also build using the selected Java version
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor committed Feb 21, 2024
1 parent e74935c commit e7d47fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ group = "org.jabref"
version = project.findProperty('projVersion') ?: '100.0.0'

java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
// Workaround needed for Eclipse, probably because of https://github.com/gradle/gradle/issues/16922
// Should be removed as soon as Gradle 7.0.1 is released ( https://github.com/gradle/gradle/issues/16922#issuecomment-828217060 )
modularity.inferModulePath.set(false)
Expand All @@ -51,6 +49,7 @@ java {
// If this is updated, also update
// - .devcontainer/devcontainer.json#L34 and
// - .gitpod.Dockerfile
// This setting also sets sourceCompatibility and targetCompatibility
languageVersion = JavaLanguageVersion.of(21)
}
}
Expand Down

0 comments on commit e7d47fd

Please sign in to comment.