Fix build issues with JDK17+

This commit is contained in:
Christian Beikov 2023-04-27 09:52:27 +02:00
parent 47751867d3
commit 79adaefb7c
1 changed files with 1 additions and 0 deletions

View File

@ -280,6 +280,7 @@ if ( gradle.ext.javaVersions.test.release.asInt() >= 17 && gradle.ext.javaToolch
// The source set gets a custom configuration which extends the normal test implementation config // The source set gets a custom configuration which extends the normal test implementation config
configurations { configurations {
testJava17Implementation.extendsFrom(testImplementation, testRuntimeOnly) testJava17Implementation.extendsFrom(testImplementation, testRuntimeOnly)
testJava17CompileOnly.extendsFrom(testCompileOnly)
} }
// Add the output from src/main/java as dependency // Add the output from src/main/java as dependency