@TaskAction
  public void generate() throws IOException {
    Collection<Configuration> configurations = getSelectedConfigurations();
    GradleDependencyReportGenerator generator = new GradleDependencyReportGenerator();
    List<DependencyScopeNode> graph = new ArrayList<>();
    for (Configuration configuration : configurations) {
      if (configuration.isCanBeResolved()) {
        graph.add(generator.buildDependencyGraph(configuration, getProject()));
      }
    }

    Path outputFilePath = outputFile.toPath();
    Files.createDirectories(outputFilePath.getParent());
    Files.write(outputFilePath, new GsonBuilder().create().toJson(graph).getBytes(StandardCharsets.UTF_8));
  }
@TaskAction
  public void generate()