Java Code Examples for org.gradle.api.artifacts.result.DependencyResult#getRequested()

The following examples show how to use org.gradle.api.artifacts.result.DependencyResult#getRequested() . 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: StrictDependencyResultSpec.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
private boolean matchesRequested(DependencyResult candidate) {
    ComponentSelector requested = candidate.getRequested();

    if (moduleIdentifier != null && requested instanceof ModuleComponentSelector) {
        ModuleComponentSelector requestedSelector = (ModuleComponentSelector) requested;
        return requestedSelector.getGroup().equals(moduleIdentifier.getGroup())
                && requestedSelector.getModule().equals(moduleIdentifier.getName());
    }

    return false;
}
 
Example 2
Source File: DependencyResultSpec.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
private boolean matchesRequested(DependencyResult candidate) {
    ComponentSelector requested = candidate.getRequested();

    if(requested instanceof ModuleComponentSelector) {
        ModuleComponentSelector requestedModule = (ModuleComponentSelector)requested;
        String requestedCandidate = requestedModule.getGroup() + ":" + requestedModule.getModule() + ":" + requestedModule.getVersion();
        return requestedCandidate.contains(stringNotation);
    }

    return false;
}
 
Example 3
Source File: StrictDependencyResultSpec.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
private boolean matchesRequested(DependencyResult candidate) {
    ComponentSelector requested = candidate.getRequested();

    if (moduleIdentifier != null && requested instanceof ModuleComponentSelector) {
        ModuleComponentSelector requestedSelector = (ModuleComponentSelector) requested;
        return requestedSelector.getGroup().equals(moduleIdentifier.getGroup())
                && requestedSelector.getModule().equals(moduleIdentifier.getName());
    }

    return false;
}
 
Example 4
Source File: DependencyResultSpec.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
private boolean matchesRequested(DependencyResult candidate) {
    ComponentSelector requested = candidate.getRequested();

    if(requested instanceof ModuleComponentSelector) {
        ModuleComponentSelector requestedModule = (ModuleComponentSelector)requested;
        String requestedCandidate = requestedModule.getGroup() + ":" + requestedModule.getModule() + ":" + requestedModule.getVersion();
        return requestedCandidate.contains(stringNotation);
    }

    return false;
}
 
Example 5
Source File: StrictDependencyResultSpec.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
private boolean matchesRequested(DependencyResult candidate) {
    ComponentSelector requested = candidate.getRequested();

    if (moduleIdentifier != null && requested instanceof ModuleComponentSelector) {
        ModuleComponentSelector requestedSelector = (ModuleComponentSelector) requested;
        return requestedSelector.getGroup().equals(moduleIdentifier.getGroup())
                && requestedSelector.getModule().equals(moduleIdentifier.getName());
    }

    return false;
}
 
Example 6
Source File: DependencyResultSpec.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
private boolean matchesRequested(DependencyResult candidate) {
    ComponentSelector requested = candidate.getRequested();

    if(requested instanceof ModuleComponentSelector) {
        ModuleComponentSelector requestedModule = (ModuleComponentSelector)requested;
        String requestedCandidate = requestedModule.getGroup() + ":" + requestedModule.getModule() + ":" + requestedModule.getVersion();
        return requestedCandidate.contains(stringNotation);
    }

    return false;
}
 
Example 7
Source File: StrictDependencyResultSpec.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
private boolean matchesRequested(DependencyResult candidate) {
    ComponentSelector requested = candidate.getRequested();

    if (moduleIdentifier != null && requested instanceof ModuleComponentSelector) {
        ModuleComponentSelector requestedSelector = (ModuleComponentSelector) requested;
        return requestedSelector.getGroup().equals(moduleIdentifier.getGroup())
                && requestedSelector.getModule().equals(moduleIdentifier.getName());
    }

    return false;
}
 
Example 8
Source File: DependencyResultSpec.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
private boolean matchesRequested(DependencyResult candidate) {
    ComponentSelector requested = candidate.getRequested();

    if(requested instanceof ModuleComponentSelector) {
        ModuleComponentSelector requestedModule = (ModuleComponentSelector)requested;
        String requestedCandidate = requestedModule.getGroup() + ":" + requestedModule.getModule() + ":" + requestedModule.getVersion();
        return requestedCandidate.contains(stringNotation);
    }

    return false;
}