final ResolutionManagementInfo info = new ResolutionManagementInfo( project );
final List<ModuleSet> moduleSets = new ArrayList<ModuleSet>();
{
final ModuleSet ms = new ModuleSet();
ms.addInclude( "*module1*" );
ms.setIncludeSubModules( false );
final ModuleBinaries mb = new ModuleBinaries();
final DependencySet ds = new DependencySet();
ds.setScope( Artifact.SCOPE_COMPILE );
mb.addDependencySet( ds );
ms.setBinaries( mb );
moduleSets.add( ms );
}
{
final ModuleSet ms = new ModuleSet();
ms.addInclude( "main-group:*" );
ms.setIncludeSubModules( true );
final ModuleBinaries mb = new ModuleBinaries();
final DependencySet ds = new DependencySet();
ds.setScope( Artifact.SCOPE_TEST );
mb.addDependencySet( ds );
ms.setBinaries( mb );
moduleSets.add( ms );
}
mm.replayAll();