mill.scalalib.worker.Versions.scala Maven / Gradle / Ivy
package mill.scalalib.worker
object Versions {
private[this] val buildInfoProperties: java.util.Properties = new java.util.Properties()
{
val buildInfoInputStream = getClass
.getResourceAsStream("Versions.buildinfo.properties")
if(buildInfoInputStream == null)
throw new RuntimeException("Could not load resource Versions.buildinfo.properties")
else try {
buildInfoProperties.load(buildInfoInputStream)
} finally {
buildInfoInputStream.close()
}
}
/** Version of Zinc. */
val zinc = buildInfoProperties.getProperty("zinc")
}