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

mill.scalalib.worker.Versions.scala Maven / Gradle / Ivy

There is a newer version: 0.12.2-20-231ff6
Show newest version
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")
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy