Fixes dependency-management / extra

This commit is contained in:
Eugene Yokota 2017-07-16 20:05:19 -04:00
parent 9ccfbe462c
commit fda31ec5e7
2 changed files with 18 additions and 19 deletions

View File

@ -1,7 +1,7 @@
lazy val root = (project in file("."))
.settings(
organization := "org.scala-sbt",
version := "1.0-SNAPSHOT",
organization := "com.example",
version := "1.0",
name := "define-color",
projectID := {
val old = projectID.value

View File

@ -1,17 +1,16 @@
ivyPaths := IvyPaths(baseDirectory.value, Some(target.value / "ivy-cache"))
publishMavenStyle := false
resolvers := baseDirectory( base =>
Resolver.file("test-repo", base / "repo" / "test")(Resolver.defaultIvyPatterns) :: Nil
).value
libraryDependencies := (baseDirectory { base =>
val color = IO.read(base / "color")
val dep = "org.scala-sbt" %% "define-color" % "1.0" extra("e:color" -> color)
dep :: Nil
}).value
organization := "org.example"
name := "use-color"
lazy val root = (project in file("."))
.settings(
organization := "org.example",
name := "use-color",
ivyPaths := IvyPaths(baseDirectory.value, Some(target.value / "ivy-cache")),
publishMavenStyle := false,
resolvers := baseDirectory( base =>
Resolver.file("test-repo", base / "repo" / "test")(Resolver.defaultIvyPatterns) :: Nil
).value,
libraryDependencies := {
val base = baseDirectory.value
val color = IO.read(base / "color")
val dep = "com.example" %% "define-color" % "1.0" extra("e:color" -> color)
dep :: Nil
}
)