private[mill] def content()

in modules/core/src/main/scala/org/scalasteward/core/buildtool/mill/MillAlg.scala [116:126]


  private[mill] def content(millVersion: Option[Version]): String = {
    // We support these platforms, but we can't take the $MILL_BIN_PLATFORM support for granted
    val millBinPlatform = millVersion match {
      case Some(v) if v >= Version("0.10") => "$MILL_BIN_PLATFORM"
      case Some(v) if v >= Version("0.9")  => "0.9"
      case Some(v) if v >= Version("0.7")  => "0.7"
      case Some(v) if v >= Version("0.6")  => "0.6"
      case _                               => "$MILL_BIN_PLATFORM"
    }
    s"""import $$ivy.`${org.scalasteward.core.BuildInfo.organization}::${org.scalasteward.core.BuildInfo.millPluginArtifactName}_mill${millBinPlatform}:${org.scalasteward.core.BuildInfo.millPluginVersion}`"""
  }