Java Code Examples for org.gradle.internal.classpath.ClassPath#plus()
The following examples show how to use
org.gradle.internal.classpath.ClassPath#plus() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DependencyClassPathProvider.java From pushfish-android with BSD 2-Clause "Simplified" License | 6 votes |
public ClassPath findClassPath(String name) { if (name.equals(GRADLE_API.name())) { ClassPath classpath = new DefaultClassPath(); for (String moduleName : Arrays.asList("gradle-core", "gradle-dependency-management", "gradle-plugin-use", "gradle-tooling-api")) { for (Module module : moduleRegistry.getModule(moduleName).getAllRequiredModules()) { classpath = classpath.plus(module.getClasspath()); } } for (Module pluginModule : pluginModuleRegistry.getPluginModules()) { classpath = classpath.plus(pluginModule.getClasspath()); } return classpath; } if (name.equals(LOCAL_GROOVY.name())) { return moduleRegistry.getExternalModule("groovy-all").getClasspath(); } return null; }
Example 2
Source File: DynamicModulesClassPathProvider.java From pushfish-android with BSD 2-Clause "Simplified" License | 6 votes |
public ClassPath findClassPath(String name) { if (name.equals("GRADLE_EXTENSIONS")) { Set<Module> coreModules = moduleRegistry.getModule("gradle-core").getAllRequiredModules(); ClassPath classpath = new DefaultClassPath(); for (String moduleName : Arrays.asList("gradle-dependency-management", "gradle-plugin-use")) { for (Module module : moduleRegistry.getModule(moduleName).getAllRequiredModules()) { if (!coreModules.contains(module)) { classpath = classpath.plus(module.getClasspath()); } } } for (Module pluginModule : pluginModuleRegistry.getPluginModules()) { classpath = classpath.plus(pluginModule.getClasspath()); } return classpath; } return null; }
Example 3
Source File: DependencyClassPathProvider.java From pushfish-android with BSD 2-Clause "Simplified" License | 6 votes |
public ClassPath findClassPath(String name) { if (name.equals(GRADLE_API.name())) { ClassPath classpath = new DefaultClassPath(); Module core = moduleRegistry.getModule("gradle-core"); for (Module module : core.getAllRequiredModules()) { classpath = classpath.plus(module.getClasspath()); } classpath = classpath.plus(moduleRegistry.getModule("gradle-core-impl").getClasspath()); try { classpath = classpath.plus(moduleRegistry.getModule("gradle-tooling-api").getImplementationClasspath()); } catch (UnknownModuleException e) { // Ignore } for (Module pluginModule : pluginModuleRegistry.getPluginModules()) { classpath = classpath.plus(pluginModule.getClasspath()); } return classpath; } if (name.equals(LOCAL_GROOVY.name())) { return moduleRegistry.getExternalModule("groovy-all").getClasspath(); } return null; }
Example 4
Source File: DependencyClassPathProvider.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 6 votes |
public ClassPath findClassPath(String name) { if (name.equals(GRADLE_API.name())) { ClassPath classpath = new DefaultClassPath(); for (String moduleName : Arrays.asList("gradle-core", "gradle-dependency-management", "gradle-plugin-use", "gradle-tooling-api")) { for (Module module : moduleRegistry.getModule(moduleName).getAllRequiredModules()) { classpath = classpath.plus(module.getClasspath()); } } for (Module pluginModule : pluginModuleRegistry.getPluginModules()) { classpath = classpath.plus(pluginModule.getClasspath()); } return classpath; } if (name.equals(LOCAL_GROOVY.name())) { return moduleRegistry.getExternalModule("groovy-all").getClasspath(); } return null; }
Example 5
Source File: DynamicModulesClassPathProvider.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 6 votes |
public ClassPath findClassPath(String name) { if (name.equals("GRADLE_EXTENSIONS")) { Set<Module> coreModules = moduleRegistry.getModule("gradle-core").getAllRequiredModules(); ClassPath classpath = new DefaultClassPath(); for (String moduleName : Arrays.asList("gradle-dependency-management", "gradle-plugin-use")) { for (Module module : moduleRegistry.getModule(moduleName).getAllRequiredModules()) { if (!coreModules.contains(module)) { classpath = classpath.plus(module.getClasspath()); } } } for (Module pluginModule : pluginModuleRegistry.getPluginModules()) { classpath = classpath.plus(pluginModule.getClasspath()); } return classpath; } return null; }
Example 6
Source File: DependencyClassPathProvider.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 6 votes |
public ClassPath findClassPath(String name) { if (name.equals(GRADLE_API.name())) { ClassPath classpath = new DefaultClassPath(); Module core = moduleRegistry.getModule("gradle-core"); for (Module module : core.getAllRequiredModules()) { classpath = classpath.plus(module.getClasspath()); } classpath = classpath.plus(moduleRegistry.getModule("gradle-core-impl").getClasspath()); try { classpath = classpath.plus(moduleRegistry.getModule("gradle-tooling-api").getImplementationClasspath()); } catch (UnknownModuleException e) { // Ignore } for (Module pluginModule : pluginModuleRegistry.getPluginModules()) { classpath = classpath.plus(pluginModule.getClasspath()); } return classpath; } if (name.equals(LOCAL_GROOVY.name())) { return moduleRegistry.getExternalModule("groovy-all").getClasspath(); } return null; }
Example 7
Source File: DynamicModulesClassPathProvider.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public ClassPath findClassPath(String name) { if (name.equals("GRADLE_PLUGINS")) { ClassPath classpath = new DefaultClassPath(); for (Module pluginModule : pluginModuleRegistry.getPluginModules()) { classpath = classpath.plus(pluginModule.getClasspath()); } return classpath; } if (name.equals("GRADLE_CORE_IMPL")) { return moduleRegistry.getModule("gradle-core-impl").getClasspath(); } return null; }
Example 8
Source File: DynamicModulesClassPathProvider.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public ClassPath findClassPath(String name) { if (name.equals("GRADLE_PLUGINS")) { ClassPath classpath = new DefaultClassPath(); for (Module pluginModule : pluginModuleRegistry.getPluginModules()) { classpath = classpath.plus(pluginModule.getClasspath()); } return classpath; } if (name.equals("GRADLE_CORE_IMPL")) { return moduleRegistry.getModule("gradle-core-impl").getClasspath(); } return null; }