Skip to content

Commit c92a468

Browse files
committed
Address issue with SpecificInstallationToolchainSpec
1 parent 5901131 commit c92a468

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gradle/java_no_deps.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ project.afterEvaluate {
164164
def testJvmHomePath = getJavaHomePath(testJvmHome)
165165
// Only change test JVM if it's not the one we are running the gradle build with
166166
if (currentJavaHomePath != testJvmHomePath) {
167-
def jvmSpec = new SpecificInstallationToolchainSpec(project.getObjects(), file(testJvmHomePath))
167+
def jvmSpec = new SpecificInstallationToolchainSpec(project.services.get(org.gradle.api.internal.provider.PropertyFactory), file(testJvmHomePath))
168168
// The provider always says that a value is present so we need to wrap it for proper error messages
169169
Provider<JavaLauncher> launcher = providers.provider {
170170
try {

0 commit comments

Comments
 (0)