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

coursier.util.Properties.scala Maven / Gradle / Ivy

There is a newer version: 1.0.0-M12-1
Show newest version
package coursier.util

import java.util.{ Properties => JProperties }

object Properties {

  private lazy val props = {
    val p = new JProperties()
    p.load(
      getClass
        .getClassLoader
        .getResourceAsStream("coursier.properties")
    )
    p
  }

  lazy val version = props.getProperty("version")
  lazy val commitHash = props.getProperty("commit-hash")

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy