Search in sources :

Example 1 with LernaDetectable

use of com.synopsys.integration.detectable.detectables.lerna.LernaDetectable in project synopsys-detect by blackducksoftware.

the class DetectableFactory method createLernaDetectable.

public LernaDetectable createLernaDetectable(DetectableEnvironment environment, LernaResolver lernaResolver, NpmLockfileOptions npmLockfileOptions, LernaOptions lernaOptions, YarnLockOptions yarnLockOptions) {
    LernaPackageDiscoverer lernaPackageDiscoverer = new LernaPackageDiscoverer(executableRunner, gson, lernaOptions.getExcludedPackages(), lernaOptions.getIncludedPackages());
    LernaPackager lernaPackager = new LernaPackager(fileFinder, packageJsonReader(), yarnLockParser(), npmLockfilePackager(npmLockfileOptions), yarnPackager(yarnLockOptions), lernaOptions.getLernaPackageTypeFilter());
    LernaExtractor lernaExtractor = new LernaExtractor(lernaPackageDiscoverer, lernaPackager);
    return new LernaDetectable(environment, fileFinder, lernaResolver, lernaExtractor);
}
Also used : LernaDetectable(com.synopsys.integration.detectable.detectables.lerna.LernaDetectable) LernaPackager(com.synopsys.integration.detectable.detectables.lerna.LernaPackager) LernaExtractor(com.synopsys.integration.detectable.detectables.lerna.LernaExtractor) LernaPackageDiscoverer(com.synopsys.integration.detectable.detectables.lerna.LernaPackageDiscoverer)

Aggregations

LernaDetectable (com.synopsys.integration.detectable.detectables.lerna.LernaDetectable)1 LernaExtractor (com.synopsys.integration.detectable.detectables.lerna.LernaExtractor)1 LernaPackageDiscoverer (com.synopsys.integration.detectable.detectables.lerna.LernaPackageDiscoverer)1 LernaPackager (com.synopsys.integration.detectable.detectables.lerna.LernaPackager)1