Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build script: flexible dependency #243

Open
VladUreche opened this issue Nov 11, 2015 · 0 comments
Open

Build script: flexible dependency #243

VladUreche opened this issue Nov 11, 2015 · 0 comments
Assignees
Milestone

Comments

@VladUreche
Copy link
Member

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 VladUreche added this to the 0.4 milestone Nov 11, 2015
@VladUreche VladUreche self-assigned this Nov 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant