miniboxing-plugin icon indicating copy to clipboard operation
miniboxing-plugin copied to clipboard

Build script: flexible dependency

Open VladUreche opened this issue 9 years ago • 0 comments

Citing project/Build.scala:

  val recursiveDeps = {
    val ver = "0.4-SNAPSHOT"
    val bootstrap = sys.props.getOrElse("miniboxing.bootstrap", "no")
    bootstrap match {
      case "stage1" =>
        Seq()
      case _ =>
        Seq(
          libraryDependencies += {
                                   val sVer = scalaBinaryVersion.value
                                   compilerPlugin(
                                     "org.scala-miniboxing.plugins" %% "miniboxing-plugin" % ver from
                                       s"https://oss.sonatype.org/content/repositories/snapshots/org/scala-miniboxing/plugins/miniboxing-plugin_$sVer/$ver/miniboxing-plugin_$sVer-$ver.jar")
                                 },
          // after publishing the new version:
          // scalacOptions ++= Seq("-P:minibox:Ykeep-functionX-repres") ++ (if (bootstrap == "stage2") Seq("-P:minibox:Ystrip-miniboxed") else Seq())
          scalacOptions ++= Seq("-P:minibox:library-functions", "-P:minibox:warn-off") ++ (if (bootstrap == "stage2") Seq("-P:minibox:Ystrip-miniboxed") else Seq())
      )
    }
  }

The version and the from should be eliminated. There will be a circular dependency which we must eliminate.

VladUreche avatar Nov 11 '15 22:11 VladUreche