com.danielsomerfield.cvecheck.gradle.GradleProjects.groovy Maven / Gradle / Ivy
package com.danielsomerfield.cvecheck.gradle
import org.gradle.api.Project
import org.gradle.api.artifacts.Configuration
import org.gradle.api.artifacts.ResolvedArtifact
class GradleProjects {
static def Set getFilesForProject(Project project) {
return project.getConfigurations().collect { Configuration configuration ->
configuration.getResolvedConfiguration().getResolvedArtifacts().collect { ResolvedArtifact artifact ->
artifact.getFile()
}
}.flatten();
}
}