private List<String> getApplicationJars(Module module) {
		// Get jars from module classpath
		URLClassLoader classLoader = (URLClassLoader) ((SimpleModule)module).getClassLoader();
		List<String> jars = new ArrayList<String>();
		for (URL url : classLoader.getURLs()) {
			String file = url.getFile().split("\\!", 2)[0];
			if (file.endsWith(".jar")) {
				jars.add(file);
			}
		}
		// Get message bus libraries
		Environment env = this.getApplicationContext().getEnvironment();
		String jarsLocation = env.resolvePlaceholders(MessageBusClassLoaderFactory.MESSAGE_BUS_JARS_LOCATION);
		try {
			Resource[] resources = resolver.getResources(jarsLocation);
			for (Resource resource : resources) {
				URL url = resource.getURL();
				jars.add(url.getFile());
			}
		}
		catch (IOException ioe) {
			throw new RuntimeException(ioe);
		}
		// Get necessary dependencies from XD DIRT.
		URLClassLoader parentClassLoader = (URLClassLoader) classLoader.getParent();
		URL[] urls = parentClassLoader.getURLs();
		for (URL url : urls) {
			String file = FilenameUtils.getName(url.getFile());
			String fileToAdd = url.getFile().split("\\!", 2)[0];
			if (file.endsWith(".jar") && (// Add spark jars
					file.contains("spark") ||
							// Add SpringXD dependencies
							file.contains("spring-xd-") ||
							// Add Spring dependencies
							file.contains("spring-core") ||
							file.contains("spring-integration-core") ||
							file.contains("spring-beans") ||
							file.contains("spring-context") ||
							file.contains("spring-boot") ||
							file.contains("spring-aop") ||
							file.contains("spring-expression") ||
							file.contains("spring-messaging") ||
							file.contains("spring-retry") ||
							file.contains("spring-tx") ||
							file.contains("spring-data-commons") ||
							file.contains("spring-data-redis") ||
							file.contains("commons-pool") ||
							file.contains("jedis") ||
							// Add codec dependency
							file.contains("kryo") ||
							file.contains("gs-collections"))) {
				jars.add(fileToAdd);
			}
		}
		return jars;
	}
Get the list of jars that this spark module requires.

@return the list of spark application jars
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/plugins/spark/streaming/SparkStreamingPlugin.java