code: private void runPreStepCommand(File bomFile) {
          String directory = bomFile.getParent();
          String[] gradleCommandParams = gradleCli.getGradleCommandParams(GradleMvnCommand.COPY_DEPENDENCIES);
          if (StringUtils.isNotEmpty(directory) && gradleCommandParams.length > 0) {
              gradleCli.runGradleCmd(directory, gradleCommandParams, true);
          } else {
              logger.warn("Could not run gradle command");
          }
      }
docs: run pre step command gradle copyDependencies