Skip to content

Commit bc0234a

Browse files
committed
Address issue with SpecificInstallationToolchainSpec
1 parent 576aeee commit bc0234a

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
@@ -175,7 +175,7 @@ project.afterEvaluate {
175175
def testJvmHomePath = getJavaHomePath(testJvmHome)
176176
// Only change test JVM if it's not the one we are running the gradle build with
177177
if (currentJavaHomePath != testJvmHomePath) {
178-
def jvmSpec = new SpecificInstallationToolchainSpec(project.getObjects(), file(testJvmHomePath))
178+
def jvmSpec = new SpecificInstallationToolchainSpec(project.services.get(org.gradle.api.internal.provider.PropertyFactory), file(testJvmHomePath))
179179
// The provider always says that a value is present so we need to wrap it for proper error messages
180180
Provider<JavaLauncher> launcher = providers.provider {
181181
try {

0 commit comments

Comments
 (0)