diff --git a/src/main/java/org/gradle/profiler/gradle/DefaultGradleBuildConfigurationReader.java b/src/main/java/org/gradle/profiler/gradle/DefaultGradleBuildConfigurationReader.java index 501e3f93..863f305a 100644 --- a/src/main/java/org/gradle/profiler/gradle/DefaultGradleBuildConfigurationReader.java +++ b/src/main/java/org/gradle/profiler/gradle/DefaultGradleBuildConfigurationReader.java @@ -126,7 +126,7 @@ private GradleBuildConfiguration probe(GradleConnector connector) { GradleBuildConfiguration version; try (ProjectConnection connection = connector.forProjectDirectory(projectDir).connect()) { BuildEnvironment buildEnvironment = connection.getModel(BuildEnvironment.class); - new ToolingApiGradleClient(connection).runTasks(ImmutableList.of("help"), ImmutableList.of("-I", initScript.getAbsolutePath()), ImmutableList.of()); + new ToolingApiGradleClient(connection).runTasks(ImmutableList.of(":help"), ImmutableList.of("-I", initScript.getAbsolutePath()), ImmutableList.of()); BuildDetails buildDetails = readBuildDetails(); JavaEnvironment javaEnvironment = buildEnvironment.getJava(); List allJvmArgs = new ArrayList<>(javaEnvironment.getJvmArguments());