code: private void downloadMissingDependencies(String projectFolder) {
          logger.debug("running pre-steps on folder {}", projectFolder);
          String tempFolder = new FilesUtils().createTmpFolder(false, TempFolders.UNIQUE_GRADLE_TEMP_FOLDER);
          File buildGradleTempDirectory = new File(tempFolder);
          if (copyProjectFolder(projectFolder, buildGradleTempDirectory)) {
              try {
                  Stream<Path> pathStream = Files.walk(Paths.get(buildGradleTempDirectory.getPath()), Integer.MAX_VALUE).filter(file -> file.getFileName().toString().equals(Constants.BUILD_GRADLE));
                  pathStream.forEach(path -> {
                      File buildGradleTmp = new File(path.toString());
                      if (buildGradleTmp.exists()) {
                          if (appendTaskToBomFile(buildGradleTmp)) {
                              runPreStepCommand(buildGradleTmp);
                              removeTaskFromBomFile(buildGradleTmp);
                          }
                      } else {
                          logger.warn("Could not find the path {}", buildGradleTmp.getPath());
                      }
                  });
              } catch (IOException e) {
                  logger.warn("Couldn't list all 'build.gradle' files, error: {}", e.getMessage());
                  logger.debug("Error: {}", e.getStackTrace());
              } finally {
                  new TempFolders().deleteTempFoldersHelper(Paths.get(System.getProperty("java.io.tmpdir"), TempFolders.UNIQUE_GRADLE_TEMP_FOLDER).toString());
              }
          }
      }
docs: copy all the bom files (build.gradle) to temp folder and run the command "gradle copyDependencies"