All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.danielsomerfield.cvecheck.gradle.ScanTask.groovy Maven / Gradle / Ivy

There is a newer version: 0.6.2-100
Show newest version
package com.danielsomerfield.cvecheck.gradle

import com.danielsomerfield.cvecheck.ScanResultHandler
import com.danielsomerfield.cvecheck.gradle.handlers.VulnerabilityCountResultHandler
import org.gradle.api.Project

class ScanTask {

  private final GradleProjectScanner scanner
  private ScanResultHandler scanResultHandler;

  public ScanTask(final GradleProjectScanner scanner, ScanResultHandler scanResultHandler = new VulnerabilityCountResultHandler(0)) {
    this.scanner = scanner;
    this.scanResultHandler = scanResultHandler;
  }

  def scan(Project project) {
    scanResultHandler.handleScanResult(scanner.scan(project))
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy