org.gradle.api.UnknownProjectException Java Examples

The following examples show how to use org.gradle.api.UnknownProjectException. 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: DependencyManager.java    From javaide with GNU General Public License v3.0 6 votes vote down vote up
private void ensureConfigured(Configuration config) {
    for (Dependency dependency : config.getAllDependencies()) {
        if (dependency instanceof ProjectDependency) {
            ProjectDependency projectDependency = (ProjectDependency) dependency;
            project.evaluationDependsOn(projectDependency.getDependencyProject().getPath());
            try {
                ensureConfigured(projectDependency.getProjectConfiguration());
            } catch (Throwable e) {
                throw new UnknownProjectException(String.format(
                        "Cannot evaluate module %s : %s",
                        projectDependency.getName(), e.getMessage()),
                        e);
            }
        }
    }
}
 
Example #2
Source File: BaseSettings.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public DefaultProjectDescriptor project(File projectDir) {
    DefaultProjectDescriptor projectDescriptor = projectDescriptorRegistry.getProject(projectDir);
    if (projectDescriptor == null) {
        throw new UnknownProjectException(String.format("Project with path '%s' could not be found.", projectDir));
    }
    return projectDescriptor;
}
 
Example #3
Source File: PluginUsePluginServiceRegistry.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
PluginResolutionServiceResolver createPluginResolutionServiceResolver(PluginResolutionServiceClient pluginResolutionServiceClient, Instantiator instantiator, VersionMatcher versionMatcher, StartParameter startParameter, final DependencyManagementServices dependencyManagementServices, final FileResolver fileResolver, final DependencyMetaDataProvider dependencyMetaDataProvider, ClassLoaderScopeRegistry classLoaderScopeRegistry) {
    final ProjectFinder projectFinder = new ProjectFinder() {
        public ProjectInternal getProject(String path) {
            throw new UnknownProjectException("Cannot use project dependencies in a plugin resolution definition.");
        }
    };

    return new PluginResolutionServiceResolver(pluginResolutionServiceClient, instantiator, versionMatcher, startParameter, classLoaderScopeRegistry.getCoreScope(), new Factory<DependencyResolutionServices>() {
        public DependencyResolutionServices create() {
            return dependencyManagementServices.create(fileResolver, dependencyMetaDataProvider, projectFinder, new BasicDomainObjectContext());
        }
    });
}
 
Example #4
Source File: BaseSettings.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public DefaultProjectDescriptor project(String path) {
    DefaultProjectDescriptor projectDescriptor = projectDescriptorRegistry.getProject(path);
    if (projectDescriptor == null) {
        throw new UnknownProjectException(String.format("Project with path '%s' could not be found.", path));
    }
    return projectDescriptor;
}
 
Example #5
Source File: BaseSettings.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public DefaultProjectDescriptor project(File projectDir) {
    DefaultProjectDescriptor projectDescriptor = projectDescriptorRegistry.getProject(projectDir);
    if (projectDescriptor == null) {
        throw new UnknownProjectException(String.format("Project with path '%s' could not be found.", projectDir));
    }
    return projectDescriptor;
}
 
Example #6
Source File: BaseSettings.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public DefaultProjectDescriptor project(String path) {
    DefaultProjectDescriptor projectDescriptor = projectDescriptorRegistry.getProject(path);
    if (projectDescriptor == null) {
        throw new UnknownProjectException(String.format("Project with path '%s' could not be found.", path));
    }
    return projectDescriptor;
}
 
Example #7
Source File: PluginUsePluginServiceRegistry.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
PluginResolutionServiceResolver createPluginResolutionServiceResolver(PluginResolutionServiceClient pluginResolutionServiceClient, Instantiator instantiator, VersionMatcher versionMatcher, StartParameter startParameter, final DependencyManagementServices dependencyManagementServices, final FileResolver fileResolver, final DependencyMetaDataProvider dependencyMetaDataProvider, ClassLoaderScopeRegistry classLoaderScopeRegistry) {
    final ProjectFinder projectFinder = new ProjectFinder() {
        public ProjectInternal getProject(String path) {
            throw new UnknownProjectException("Cannot use project dependencies in a plugin resolution definition.");
        }
    };

    return new PluginResolutionServiceResolver(pluginResolutionServiceClient, instantiator, versionMatcher, startParameter, classLoaderScopeRegistry.getCoreScope(), new Factory<DependencyResolutionServices>() {
        public DependencyResolutionServices create() {
            return dependencyManagementServices.create(fileResolver, dependencyMetaDataProvider, projectFinder, new BasicDomainObjectContext());
        }
    });
}
 
Example #8
Source File: BaseSettings.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public DefaultProjectDescriptor project(File projectDir) {
    DefaultProjectDescriptor projectDescriptor = projectDescriptorRegistry.getProject(projectDir);
    if (projectDescriptor == null) {
        throw new UnknownProjectException(String.format("Project with path '%s' could not be found.", projectDir));
    }
    return projectDescriptor;
}
 
Example #9
Source File: BaseSettings.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public DefaultProjectDescriptor project(String path) {
    DefaultProjectDescriptor projectDescriptor = projectDescriptorRegistry.getProject(path);
    if (projectDescriptor == null) {
        throw new UnknownProjectException(String.format("Project with path '%s' could not be found.", path));
    }
    return projectDescriptor;
}
 
Example #10
Source File: BaseSettings.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public DefaultProjectDescriptor project(File projectDir) {
    DefaultProjectDescriptor projectDescriptor = projectDescriptorRegistry.getProject(projectDir);
    if (projectDescriptor == null) {
        throw new UnknownProjectException(String.format("Project with path '%s' could not be found.", projectDir));
    }
    return projectDescriptor;
}
 
Example #11
Source File: BaseSettings.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public DefaultProjectDescriptor project(String path) {
    DefaultProjectDescriptor projectDescriptor = projectDescriptorRegistry.getProject(path);
    if (projectDescriptor == null) {
        throw new UnknownProjectException(String.format("Project with path '%s' could not be found.", path));
    }
    return projectDescriptor;
}
 
Example #12
Source File: DefaultScriptHandlerFactory.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public ProjectInternal getProject(String path) {
    throw new UnknownProjectException("Cannot use project dependencies in a script classpath definition.");
}
 
Example #13
Source File: PluginResolverFactory.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public ProjectInternal getProject(String path) {
    throw new UnknownProjectException("Cannot use project dependencies in a plugin resolution definition.");
}
 
Example #14
Source File: DefaultScriptHandlerFactory.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public ProjectInternal getProject(String path) {
    throw new UnknownProjectException("Cannot use project dependencies in a script classpath definition.");
}
 
Example #15
Source File: DefaultScriptHandlerFactory.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public ProjectInternal getProject(String path) {
    throw new UnknownProjectException("Cannot use project dependencies in a script classpath definition.");
}
 
Example #16
Source File: DefaultScriptHandlerFactory.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public ProjectInternal getProject(String path) {
    throw new UnknownProjectException("Cannot use project dependencies in a script classpath definition.");
}
 
Example #17
Source File: PluginResolverFactory.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public ProjectInternal getProject(String path) {
    throw new UnknownProjectException("Cannot use project dependencies in a plugin resolution definition.");
}
 
Example #18
Source File: Settings.java    From pushfish-android with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * <p>Returns the project with the given path.</p>
 *
 * @param path The path.
 * @return The project with the given path. Never returns null.
 * @throws UnknownProjectException If no project with the given path exists.
 */
ProjectDescriptor project(String path) throws UnknownProjectException;
 
Example #19
Source File: Settings.java    From pushfish-android with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * <p>Returns the project with the given project directory.</p>
 *
 * @param projectDir The project directory.
 * @return The project with the given project directory. Never returns null.
 * @throws UnknownProjectException If no project with the given path exists.
 */
ProjectDescriptor project(File projectDir) throws UnknownProjectException;
 
Example #20
Source File: Settings.java    From pushfish-android with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * <p>Returns the project with the given project directory.</p>
 *
 * @param projectDir The project directory.
 * @return The project with the given project directory. Never returns null.
 * @throws UnknownProjectException If no project with the given path exists.
 */
ProjectDescriptor project(File projectDir) throws UnknownProjectException;
 
Example #21
Source File: Settings.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * <p>Returns the project with the given project directory.</p>
 *
 * @param projectDir The project directory.
 * @return The project with the given project directory. Never returns null.
 * @throws UnknownProjectException If no project with the given path exists.
 */
ProjectDescriptor project(File projectDir) throws UnknownProjectException;
 
Example #22
Source File: Settings.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * <p>Returns the project with the given path.</p>
 *
 * @param path The path.
 * @return The project with the given path. Never returns null.
 * @throws UnknownProjectException If no project with the given path exists.
 */
ProjectDescriptor project(String path) throws UnknownProjectException;
 
Example #23
Source File: Settings.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * <p>Returns the project with the given project directory.</p>
 *
 * @param projectDir The project directory.
 * @return The project with the given project directory. Never returns null.
 * @throws UnknownProjectException If no project with the given path exists.
 */
ProjectDescriptor project(File projectDir) throws UnknownProjectException;
 
Example #24
Source File: Settings.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * <p>Returns the project with the given path.</p>
 *
 * @param path The path.
 * @return The project with the given path. Never returns null.
 * @throws UnknownProjectException If no project with the given path exists.
 */
ProjectDescriptor project(String path) throws UnknownProjectException;
 
Example #25
Source File: Settings.java    From pushfish-android with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * <p>Returns the project with the given path.</p>
 *
 * @param path The path.
 * @return The project with the given path. Never returns null.
 * @throws UnknownProjectException If no project with the given path exists.
 */
ProjectDescriptor project(String path) throws UnknownProjectException;
 
Example #26
Source File: ProjectInternal.java    From pushfish-android with BSD 2-Clause "Simplified" License votes vote down vote up
ProjectInternal project(String path) throws UnknownProjectException; 
Example #27
Source File: ProjectInternal.java    From Pushjet-Android with BSD 2-Clause "Simplified" License votes vote down vote up
ProjectInternal project(String path) throws UnknownProjectException; 
Example #28
Source File: ProjectInternal.java    From Pushjet-Android with BSD 2-Clause "Simplified" License votes vote down vote up
ProjectInternal project(String path) throws UnknownProjectException; 
Example #29
Source File: ProjectInternal.java    From pushfish-android with BSD 2-Clause "Simplified" License votes vote down vote up
ProjectInternal project(String path) throws UnknownProjectException;