main.nebula.plugin.dependencylock.diff.PathAwareDiffReportGenerator.kt Maven / Gradle / Ivy
package nebula.plugin.dependencylock.diff
import nebula.dependencies.comparison.DependencyDiff
import org.gradle.api.Project
import org.gradle.api.artifacts.component.*
import org.gradle.api.artifacts.result.ComponentSelectionCause
import org.gradle.api.artifacts.result.ResolvedComponentResult
import org.gradle.api.artifacts.result.ResolvedDependencyResult
import org.gradle.api.internal.artifacts.ivyservice.ivyresolve.strategy.DefaultVersionComparator
import org.gradle.api.internal.artifacts.ivyservice.ivyresolve.strategy.DefaultVersionSelectorScheme
import org.gradle.api.internal.artifacts.ivyservice.ivyresolve.strategy.VersionParser
import org.gradle.api.internal.project.ProjectInternal
import java.lang.RuntimeException
import java.util.*
class PathAwareDiffReportGenerator : DiffReportGenerator {
companion object {
val VERSION_SCHEME = DefaultVersionSelectorScheme(DefaultVersionComparator(), VersionParser())
}
// method constructs a map/list structure ready to be serialized with dependency paths with changes. Each group of paths
// is marked with configuration names where those paths belong.
override fun generateDiffReport(project: Project, diffsByConfiguration: Map> ): List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy