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

mill.contrib.errorprone.BuildInfo.scala Maven / Gradle / Ivy

package mill.contrib.errorprone

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 errorProneVersion = buildInfoProperties.getProperty("errorProneVersion")
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy