![JAR search and dependency download from the Maven repository](/logo.png)
sbt.internal.graph.rendering.LicenseInfo.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of main_2.12 Show documentation
Show all versions of main_2.12 Show documentation
sbt is an interactive build tool
/*
* sbt
* Copyright 2023, Scala center
* Copyright 2011 - 2022, Lightbend, Inc.
* Copyright 2008 - 2010, Mark Harrah
* Licensed under Apache License 2.0 (see LICENSE)
*/
package sbt
package internal
package graph
package rendering
object LicenseInfo {
def render(graph: ModuleGraph): String =
graph.nodes
.filter(_.isUsed)
.groupBy(_.license)
.toSeq
.sortBy(_._1)
.map {
case (license, modules) =>
license.getOrElse("No license specified") + "\n" +
modules.map(m => s"\t ${m.id.idString}").mkString("\n")
}
.mkString("\n\n")
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy