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

io.kipp.mill.github.dependency.graph.BuildInfo.scala Maven / Gradle / Ivy

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