IvyTranslations { static DefaultModuleDescriptor toPublicationLessModule(JkVersionedModule module, JkDependencySet dependencies, JkScopeMapping defaultMapping, JkVersionProvider resolvedVersions) { final ModuleRevisionId thisModuleRevisionId = ModuleRevisionId.newInstance(module .getModuleId().getGroup(), module.getModuleId().getName(), module.getVersion().getValue()); final DefaultModuleDescriptor result = new DefaultModuleDescriptor( thisModuleRevisionId, "integration", null); populateModuleDescriptor(result, dependencies, defaultMapping, resolvedVersions); return result; } private  IvyTranslations();   }
@Test public void toPublicationLessModule() throws Exception { final JkVersionProvider versionProvider = JkVersionProvider.of(); JkDependencySet deps = deps(); final DefaultModuleDescriptor desc = IvyTranslations.toPublicationLessModule(OWNER, deps, DEFAULT_SCOPE_MAPPING, versionProvider); final DependencyDescriptor[] dependencyDescriptors = desc.getDependencies(); assertEquals(1, dependencyDescriptors.length); final DependencyDescriptor depDesc = dependencyDescriptors[0]; final DependencyArtifactDescriptor[] artifactDescs = depDesc.getAllDependencyArtifacts(); assertEquals(2, artifactDescs.length); final DependencyArtifactDescriptor mainArt = findArtifactIn(artifactDescs, null); assertNotNull(mainArt); final DependencyArtifactDescriptor linuxArt = findArtifactIn(artifactDescs, "linux"); assertNotNull(linuxArt); System.out.println(Arrays.asList(linuxArt.getConfigurations())); }