com.danielsomerfield.cvecheck.gradle.ProjectConfiguration.groovy Maven / Gradle / Ivy
package com.danielsomerfield.cvecheck.gradle
import com.danielsomerfield.cvecheck.Configuration
import com.danielsomerfield.cvecheck.ScanResultHandler
import org.gradle.api.Project
class ProjectConfiguration implements Configuration {
private final Project project;
public ProjectConfiguration(final Project project) {
this.project = project
}
@Override
long refreshAfter() {
return project.cvecheck.refreshAfter
}
@Override
File buildRoot() {
return project.buildDir
}
@Override
ScanResultHandler scanResultHandler() {
return project.cvecheck.scanResultHandler
}
}