Search in sources :

Example 1 with DefaultVirtualModuleComponentIdentifier

use of org.gradle.internal.component.external.model.DefaultVirtualModuleComponentIdentifier in project gradle by gradle.

the class ModuleComponentResolveMetadataSerializer method readModuleIdentifier.

private VirtualComponentIdentifier readModuleIdentifier(Decoder decoder) throws IOException {
    String group = decoder.readString();
    String module = decoder.readString();
    String version = decoder.readString();
    ModuleIdentifier moduleIdentifier = DefaultModuleIdentifier.newId(group, module);
    return new DefaultVirtualModuleComponentIdentifier(moduleIdentifier, version);
}
Also used : ModuleIdentifier(org.gradle.api.artifacts.ModuleIdentifier) DefaultModuleIdentifier(org.gradle.api.internal.artifacts.DefaultModuleIdentifier) DefaultVirtualModuleComponentIdentifier(org.gradle.internal.component.external.model.DefaultVirtualModuleComponentIdentifier)

Aggregations

ModuleIdentifier (org.gradle.api.artifacts.ModuleIdentifier)1 DefaultModuleIdentifier (org.gradle.api.internal.artifacts.DefaultModuleIdentifier)1 DefaultVirtualModuleComponentIdentifier (org.gradle.internal.component.external.model.DefaultVirtualModuleComponentIdentifier)1