final DependencySet ds1 = new DependencySet();
{
ms1.addInclude( "*module1*" );
ms1.setIncludeSubModules( false );
final ModuleBinaries mb = new ModuleBinaries();
ds1.setScope( Artifact.SCOPE_COMPILE );
mb.addDependencySet( ds1 );
ms1.setBinaries( mb );
moduleSets.add( ms1 );
}
final ModuleSet ms2 = new ModuleSet();
final DependencySet ds2 = new DependencySet();
{
ms2.addInclude( "main-group:*" );
ms2.setIncludeSubModules( true );
final ModuleBinaries mb = new ModuleBinaries();
ds2.setScope( Artifact.SCOPE_TEST );
mb.addDependencySet( ds2 );
ms2.setBinaries( mb );
moduleSets.add( ms2 );
}
mm.replayAll();