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

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

There is a newer version: 0.6.2-100
Show newest version
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();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy