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

mill.main.BuildInfo.scala Maven / Gradle / Ivy

There is a newer version: 0.12.2-20-231ff6
Show newest version
package mill.main

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()
    }
  }

  /** Mill binary platform version. */
  val millBinPlatform = buildInfoProperties.getProperty("millBinPlatform")

  /** Dependency artifacts embedded in mill assembly by default. */
  val millEmbeddedDeps = buildInfoProperties.getProperty("millEmbeddedDeps")

  /** Scalac compiler plugin dependencies to compile the build script. */
  val millScalacPluginDeps = buildInfoProperties.getProperty("millScalacPluginDeps")

  /** Mill version. */
  val millVersion = buildInfoProperties.getProperty("millVersion")

  /** Scala version used to compile mill core. */
  val scalaVersion = buildInfoProperties.getProperty("scalaVersion")

  /** Scala 2.12 version used by some workers. */
  val workerScalaVersion212 = buildInfoProperties.getProperty("workerScalaVersion212")
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy