Skip to content

Commit

Permalink
Revert "Fix wrong toolchain configuration for java17 tests"
Browse files Browse the repository at this point in the history
This reverts commit f1c08e8.
  • Loading branch information
beikov committed Sep 2, 2022
1 parent 8a55596 commit 09b19c7
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions hibernate-core/hibernate-core.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,6 @@ if ( gradle.ext.javaVersions.test.release.asInt() >= 17 ) {

// For the new source set, we need to configure the source and target version to 17
compileTestJava17Java {
javaCompiler = javaToolchains.compilerFor {
languageVersion = gradle.ext.javaVersions.test.compiler
}
sourceCompatibility = 17
targetCompatibility = 17
// We also depend on the main test resources
Expand All @@ -253,9 +250,6 @@ if ( gradle.ext.javaVersions.test.release.asInt() >= 17 ) {

// We execute the Java 17 tests in a custom test task
task java17Test(type: Test) {
javaLauncher = javaToolchains.launcherFor {
languageVersion = gradle.ext.javaVersions.test.launcher
}
useJUnitPlatform()
testClassesDirs = sourceSets.testJava17.output.classesDirs
classpath = sourceSets.testJava17.runtimeClasspath
Expand Down

0 comments on commit 09b19c7

Please sign in to comment.