public static List<File> getPluginPathToShipFiles(JobGraph jobGraph) {
       List<File> shipFiles = jobGraph.getUserArtifacts()
                .entrySet()
                .stream()
                .filter(tmp -> tmp.getKey().startsWith("class_path"))
                .map(tmp -> new File(tmp.getValue().filePath))
                .collect(Collectors.toList());

        jobGraph.getUserArtifacts().clear();
        return shipFiles;
    }
build JobGraph by JobParamsInfo
Date: 2020/3/4
Company: www.dtstack.com
@author maqi
launcher/src/main/java/com/dtstack/flink/sql/launcher/utils/JobGraphBuildUtil.java