com.netflix.nebula.config.plugin.ConfigurationEnvironmentPrintTask.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-lint-plugin Show documentation
Show all versions of gradle-lint-plugin Show documentation
Pluggable and configurable linter tool for identifying and reporting on patterns of misuse or deprecations in Gradle scripts
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