mirror of https://github.com/sbt/sbt.git
Fixes dependency-management / extra
This commit is contained in:
parent
9ccfbe462c
commit
fda31ec5e7
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue