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

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

The newest version!
package mill.main

object BuildInfo {
  private 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")

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy