io.kipp.mill.github.dependency.graph.BuildInfo.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mill-github-dependency-graph_mill0.11_2.13 Show documentation
Show all versions of mill-github-dependency-graph_mill0.11_2.13 Show documentation
Submit your mill project's dependency graph to GitHub
The newest version!
package io.kipp.mill.github.dependency.graph
object BuildInfo {
private[this] val buildInfoProperties: java.util.Properties = new java.util.Properties()
{
val buildInfoInputStream = getClass
.getResourceAsStream("BuildInfo.buildinfo.properties")
if(buildInfoInputStream == null)
throw new RuntimeException("Could not load resource BuildInfo.buildinfo.properties")
else try {
buildInfoProperties.load(buildInfoInputStream)
} finally {
buildInfoInputStream.close()
}
}
val detectorName = buildInfoProperties.getProperty("detectorName")
val homepage = buildInfoProperties.getProperty("homepage")
val version = buildInfoProperties.getProperty("version")
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy