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

com.netflix.nebula.config.plugin.ConfigurationEnvironmentPrintTask.groovy Maven / Gradle / Ivy

Go to download

Pluggable and configurable linter tool for identifying and reporting on patterns of misuse or deprecations in Gradle scripts

There is a newer version: 20.2.2
Show newest version
package com.netflix.nebula.config.plugin

import org.gradle.api.DefaultTask
import org.gradle.api.tasks.TaskAction

class ConfigurationEnvironmentPrintTask extends DefaultTask {
    @TaskAction
    void printConfigurationEnvironment() {
        def confExtensions = project.configurations.inject([]) { acc, conf ->
            acc += conf.extendsFrom.collect { extended -> "$conf.name->$extended.name" }
            acc
        }

        println(new DependencyHierarchyWriter().printHierarchy(*confExtensions))
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy