Skip to content

Instantly share code, notes, and snippets.

@farmdawgnation
Created March 7, 2015 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save farmdawgnation/85172b0933ad4c1864f8 to your computer and use it in GitHub Desktop.
Save farmdawgnation/85172b0933ad4c1864f8 to your computer and use it in GitHub Desktop.
Examples for skipping a scala version
(skip in compile) <<= scalaVersion { sv => () => sv == "2.9.3" }
libraryDependencies ++= Seq(
"net.liftweb" %% "lift-json" % "2.6" cross CrossVersion.binaryMapped {
// Makes update resolution happy, but since w'ere not building for 2.9.3
// we won't end up in runtime version hell by doing this.
case "2.9.3" => "2.9.1"
case x => x
}
)
publishArtifact <<= scalaVersion { sv => sv != "2.9.3" }
(skip in compile) <<= scalaVersion { sv => () => sv == "2.9.3" }
publishArtifact <<= scalaVersion { sv => sv != "2.9.3" }
libraryDependencies ++= Seq(
"net.liftweb" %% "lift-json" % "2.6" cross CrossVersion.binaryMapped {
// Makes update resolution happy, but since w'ere not building for 2.9.3
// we won't end up in runtime version hell by doing this.
case "2.9.3" => "2.9.1"
case x => x
}
)
[info] published dispatch-lift-json_2.9.3 to /Users/matt/.ivy2/local/net.databinder.dispatch/dispatch-lift-json_2.9.3/0.11.2/poms/dispatch-lift-json_2.9.3.pom
[info] published dispatch-lift-json_2.9.3 to /Users/matt/.ivy2/local/net.databinder.dispatch/dispatch-lift-json_2.9.3/0.11.2/jars/dispatch-lift-json_2.9.3.jar
[info] published dispatch-lift-json_2.9.3 to /Users/matt/.ivy2/local/net.databinder.dispatch/dispatch-lift-json_2.9.3/0.11.2/srcs/dispatch-lift-json_2.9.3-sources.jar
[info] published dispatch-lift-json_2.9.3 to /Users/matt/.ivy2/local/net.databinder.dispatch/dispatch-lift-json_2.9.3/0.11.2/docs/dispatch-lift-json_2.9.3-javadoc.jar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment