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

com.github.squirrelgrip.plugin.model.DependencyUpdatesReport.kt Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
package com.github.squirrelgrip.plugin.model

import com.fasterxml.jackson.annotation.JsonProperty
import org.apache.maven.project.MavenProject

data class DependencyUpdatesReport(
    @JsonProperty("summary")
    val summary: Summary,
    @JsonProperty("dependencyManagements")
    val dependencyManagements: DependencyManagements,
    @JsonProperty("dependencies")
    val dependencies: Dependencies,
) {
    fun getDependencies(project: MavenProject): Collection =
        ((dependencyManagements.dependencyManagement ?: emptyList()) + (dependencies.dependency ?: emptyList())).map {
            it.toArtifactDetails(project)
        }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy