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

com.github.squirrelgrip.plugin.AggregateUpdateReportMojo.kt Maven / Gradle / Ivy

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

import com.github.squirrelgrip.plugin.resolver.AbstractMavenDependencyResolver
import com.github.squirrelgrip.plugin.resolver.SessionDependencyResolver
import org.apache.maven.plugins.annotations.LifecyclePhase
import org.apache.maven.plugins.annotations.Mojo
import org.apache.maven.plugins.annotations.ResolutionScope
import org.eclipse.aether.RepositorySystemSession
import java.util.Locale

@Mojo(
    name = "aggregate",
    defaultPhase = LifecyclePhase.SITE,
    requiresDependencyResolution = ResolutionScope.RUNTIME,
    requiresProject = true,
    threadSafe = true,
    aggregator = true
)
class AggregateUpdateReportMojo : AbstractUpdateReport() {
    override fun getMavenDependencyResolver(): AbstractMavenDependencyResolver =
        SessionDependencyResolver(
            repositorySystemSession.localRepository,
            remoteRepositories,
            pluginArtifactRepositories,
            session,
            log,
            ignoredVersions
        )

    override val reportHeading = "Aggregated Update Report"

    override fun getOutputName(): String =
        "update-aggregate-report"

    override fun getName(locale: Locale): String =
        "Aggregated Update Report"

    override fun getDescription(locale: Locale): String =
        "Builds an Aggregated Update Report for all modules in the project"
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy